RE: Unable to send variables to MySQL table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



<snippity snip>
> 
> Any ideas? The code is below.
<snip snip>
> mysql_query($add_to_db);

Hi Stewart.  Your query is failing for some reason (as others here have
mentioned). I would change the above line to read:

mysql_query($add_to_db) or die(mysql_error()."<br>$add_to_db");

This will make the script die, and will print the mysql error and the SQL
statement that caused it.

JM

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux