Can someone please help me out with this problem with update:
ERROR:
Could not select database: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 '(Firstname='raj', Lastname='veer', Age='36' where ID='1')' at line 1
Here is the code:
<?
require_once 'masterconfig.php';
$id=$POST['id'];
$fname = $POST['fname'];
$lname = $POST['lname'];
$age= $POST['age'];
$mySQL = "update fullname set(Firstname='$fname', Lastname='$lname', Age='$age' where ID='$id')";
mysql_query($mySQL)or die('Could not select database:' . mysql_error());
?>
Thanks.