Re: Help with scripts to add records to a database

From: Date: Wed, 12 Nov 2003 09:25:03 +0000
Subject: Re: Help with scripts to add records to a database
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-169244@lists.php.net to get a copy of this message
Rolf Brusletto wrote:
Mark wrote:
Sorry guys, I have tried all the suggestions so far with no luck..... Regards, Mark
Mark - After the mysql_query($query); line.... add the following line echo mysql_error(); run the script and try to add something again, if there is an error, it will tell you via mysql_error(); echo it out to the browser, and get back to me :)
do the same with the variable $query - insert a line echo $query into your code just before the query execution and check carefully the query string returned by that line

« previous php.general (#169244) next »