View Single Post
  #3 (permalink)  
Old 09-28-06, 07:07 AM
Tjobbe Tjobbe is offline
Newbie Coder
 
Join Date: Sep 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
I'm sure the error must be coming from the insert.php page, I've ammended the code a little:

PHP Code:

<?


include "dbconnect.php";

$sqlquery "INSERT INTO entries VALUES('id','title','content','date')";

$results mysql_query($sqlquery) or die(mysql_error());

print 
"<html><body><center>";
print 
"<p>You have just entered this record<p>";
print 
"title : $title<br>";
print 
"content : $content<br>";
print 
"</body></html>";

?>
I now get the following error on submitting the form: "Out of range value adjusted for column 'id' at row 1"

What does that mean? is the id and date fields not auto inserting? i know im not passing them, but ddont they get added automatically?
Reply With Quote