...

View Full Version : Parse error: syntax error



gspabla
04-18-2009, 07:41 PM
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/*****/public_html/******.com/register_confirm.php on line 9

This is line no. 9:
$update1 = mysql_query("update register set matriid=concat(prefix,id),age=$_SESSION['Age']")


can u tell me what's wrong in this code

shyam
04-19-2009, 01:37 PM
$update1 = mysql_query("update register set matriid=concat(prefix,id),age=" . $_SESSION['Age'])



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum