MySQL Forums
Forum List  »  MySQL Query Browser

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''Organization','Federation','Address','OperationUnit','Lnam e','Fname','Mname') V' at line 1
Posted by: jhel gudgurl
Date: April 23, 2012 02:06AM

here is the code

<?php
$db="registration";
mysql_connect('localhost','root','')or die(mysql_error());
mysql_select_db("$db");
$mysql="INSERT INTO app('Organization','Federation','Address','OperationUnit','Lname','Fname','Mname') VALUES ('$_POST[Organization]','$_POST[Federation]','$_POST[Address]','$_POST[OperationUnit]','$_POST[Lname]','$_POST[Fname]','$_POST[Mname]')";
if(!mysql_query($mysql))
die(mysql_error());

echo"Data Insert";

mysql_close();
?>

Options: ReplyQuote


Subject
Written By
Posted
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''Organization','Federation','Address','OperationUnit','Lnam e','Fname','Mname') V' at line 1
April 23, 2012 02:06AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.