Re: Can anyone help?

From: Date: Mon, 01 Apr 2002 18:09:35 +0000
Subject: Re: Can anyone help?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-90989@lists.php.net to get a copy of this message
On Tue, 2 Apr 2002, Denis L. Menezes wrote: > $query="INSERT INTO news (newsid,title, author, body, posted) > //VALUES($newsid,'$title','$author', '$body', > $posted)";) > > Explanation : I run the test.htm and then the testphp1.php executes well. > The databse is connected, but the error > "error adding row" appears all the time. When in doubt, tell it to print your SQL statement to the browser screen, and paste it into the MySQL command-line client. Between your own eyes and the MySQL CLI's error messages, you'll get your answer. Or, at the very least, print out mysql_error() when you get a database error. miguel

« previous php.general (#90989) next »