![]() |
|
? |
![]() PHP FAQ PHP Articles PHP Help Bulletin Board PHP Manual (NEW!) First Time PHP'ers Help with programming Sql assignment help PHP Homework Help C# Help
|
? |
|
|||||||||||||||||||||||||||||||||||||||||||||
?Reply To This Message | ||||||||||||||||||||||||||||||||||||||||||||||||
?Your Name: | ||||||||||||||||||||||||||||||||||||||||||||||||
?Your Email: | ||||||||||||||||||||||||||||||||||||||||||||||||
?Subject: | ||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
Email replies to this thread, to the address above. | ||||||||||||||||||||||||||||||||||||||||||||||||
??wrote: > > Code, at first glance looks ok....though i assume that id is > an autonumber...leave it out > > what if you try this > > mysql_select_db($database,$conn) or die ("Could not open > database"); > $query = "INSERT INTO student(title,message,author,email) > VALUES('$title','$msg','author','email')"; > > echo $query; //<-- does hold the values you expected > > $result=mysql_query($query) or die ("Could not complete query > because ".mysql_error()); > //<--better error handling in query ">??![]() |