Howard,
That has certainly worked and I have taken on board what you and Jon say.
I was thrown by the big table being unhappy with anything I did. This
format is in the original table I used as template; I will try to imprint
it on my mind as *not* the thing to change when I meet problems!
Many thanks,
Joseph
> Jon's right -- that is fishy.
>
> Jon Haworth wrote:
> >>$sql = @mysql_query("INSERT INTO spw_type (spw_type_id ,
> >>spw_type_description) VALUES ('', '$_POST[poemtype]')")
> >>or die ("Query failed");
>
> Although I think it does work, it's depecrated PHP syntax. You should
> include quotes around the key name ($_POST['poemtype']).
>
> But now you're probably thinking, "Won't this terminate my string?" Yes,
> it will, so in addition, you need to add braces around the array
> accessor so that PHP knows exactly what needs to be interepreted.
>
> $sql = @mysql_query("INSERT INTO spw_type (spw_type_id ,
> spw_type_description) VALUES ('', '{$_POST['poemtype']}')")
> or die ("Query failed");
> --
> ::::::::::::::::::::::::::::::
> Howard Cheng
> http://www.howcheng.com/
> Wise-cracking quote goes here.
>
> ____ . 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.unsub%%
>
> 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.
>
>
____ � 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.