I have a simple login for my site. When they login , a session variable is created
$_SESSION['username'] = $myemail;
On another page, i want to search through the database where email = the users email
$sql = "SELECT * FROM work where Email = '.$_SESSION['Susername'].' ";
I am getting an error
Parse error: syntax error, unexpected '"', expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) on that line
Also Subline Text 2 is highlighting the username in purple if that is any help ![enter image description here][1]
Can somebody spot some syntax error ?