Error during data UPDATE in php
Posted
by Piyush
on Stack Overflow
See other posts from Stack Overflow
or by Piyush
Published on 2010-05-27T10:16:07Z
Indexed on
2010/05/27
10:21 UTC
Read the original article
Hit count: 167
$sql = "UPDATE tblprofile SET name = '$membername' ,
f_h_name = '$fathername',
maritalS = '$mstatus' ,
dob = '$dob' ,
occupation = '$occupation' ,
nominee = '$nominee' ,
address1 = '$address1' ,
address2 = '$address2',
city = '$city',
district = '$district',
state = '$state',
pin = '$areapin',
mobile = '$mobileno',
email = '$email',
PANno = '$panno',
bankname = '$bankname',
branch = '$branch',
accountno = '$accountno'
WHERE userId = '$_SESSION['UserId']' "; //line 212
if(mysql_query($sql))
{
echo "Updation Done.";
}
Error comes in browser : Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\xampp\htdocs\303\saveEditProfile.php on line 212
© Stack Overflow or respective owner