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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php