Jon,
Thank you for this; at the moment this one is working. It was trying to
adapt it to a 17-field table that gives difficulties. The same format for
smaller tables (I've now got two working successfully) seems OK. This
suggest some cut-off size for phpmyadmin - at least the version I have.
I'll work back to that; if it is the problem I'll reduce the fields in that
table.
I did spend hours and hours on all sorts of variations; I know the db is
opened and that the query itself works. The problem must be either size or
php content, as you suggest. Is there normally a limit to table size?
Thanks again,
Joseph
PS - I can't get errors printed out; I'm not going to worry at the moment.
The config file, if that is the route, will have to wait!
> Hi Joseph,
>
> > include$_SERVER['DOCUMENT_ROOT'].
> > '/www.poetryadmin.com/html/forms/spw_poemtype_
> > insert_form.html';
>
> Firstly, you're missing the brackets for include()... should look more
like
> this:
>
> include ($_SERVER['DOCUMENT_ROOT']. '/file.html');
>
> Secondly, this looks fishy to me:
>
> > $sql = @mysql_query("INSERT INTO spw_type (spw_type_id ,
> > spw_type_description) VALUES ('', '$_POST[poemtype]')")
> > or die ("Query failed");
>
> I think the single quotes around $_POST[poemtype] should actually be
inside
> the square brackets, and it looks like there's a missing double quote
> somewhere as well.
>
> Try adding
>
> echo "<pre>". $sql. "</pre>";
>
> after that line and you'll see what you're actually sending to the
database,
> rather just getting the error message.
>
> HTH
> Jon
____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub
________________ http://www.wdvl.com _______________________
You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016
Please include the email address which you have been contacted with.