954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

php question

i am doing connectivity of one form of my project website. and i am facing following kind of error. please can you help me. i have tried to solve. but not getting idea exactly. the error is Parse error: syntax error, unexpected ';' in C:\wamp\www\PROJECT\feed_data.php on line 15

<?PHP
$con=mysql_connect("localhost","root","");
if(!$con)
{
die('could not connect'.mysql_error());
}
mysql_select_db("sncl",$con);

mysql_query("INSERT INTO feedbacktable (usertype,name,add,phone,email,comment)
VALUES('$_POST[u_name]',
'$_POST[name]',
'$_POST[address]',
$_POST[phone],
'$_POST[email]',
'$_POST[feedback]')";

mysql_close($con);
?>

akashbarot51
Newbie Poster
2 posts since Feb 2012
Reputation Points: 10
Solved Threads: 0
 

Your mysql_query misses the closing parenthesis. Next time use code tags!

pritaeas
Posting Expert
Moderator
5,480 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: