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.

Reply via email to