?

Search Help Board

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

?
?Re: Urgent Help
Author:??(---.scpe.powergate.ca)
Date:???04-28-04 05:13

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

?Topics Author? Date
?Urgent Help??new
LouD 04-27-04 15:42?
?Re: Urgent Help??new
bastien 04-28-04 05:13?
?Re: Urgent Help??new
LouD 04-28-04 19:07?
?Re: Urgent Help??new
LouD 04-28-04 19:09?
?Re: Urgent Help??new
bastien 04-28-04 19:17?
?Re: Urgent Help??new
LouD 04-29-04 09:41?
?Re: Urgent Help??new
ruth goldson 05-03-04 05:34?
Go to Top??|??Go to Topic??|??Flat View??|??Search?
??|??
New Topic
?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 ">??

Provided By
Phorum