Oh dear, this turned in to a longer post than I had planned. Forgive the multiple questions all together. It seemed easier than re-explaining my project over and over...
Alright, I readily admit I'm a newbie when it comes to Drupal, PhP, and MySQL. However, after reading through the example_node.module tutorial, and related material, I felt I was ready to tackle something simple. Here's the story:
I attempted to set up a simple module called 'newsletter'. Essentially, when a user creates 'newsletter' content, they provide a volume number, issue number, etc. and then supplies various article texts for the newsletter. Ideally, the submitted content is then displayed in a nice formatted newsletter-type node based on the supplied content.
Now, following the same guidelines as the example_node.module tutorial, I created my own database table using a mySQL statement like this:
CREATE TABLE newsletter (
vid int(10) unsigned NOT NULL default '0',
nid int(10) unsigned NOT NULL default '0',
vvolume int(10) NOT NULL default '0',
vissue int(10) NOT NULL default '0',
vt00 longtext,
vs00 longtext,
vb00 longtext,
...
PRIMARY KEY (vid, nid),
KEY `newsletter_nid` (nid)
)
(It turns out there are over 40 fields.) My module can successfully create a newsletter node, except...