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 '\"tom\"' at line 1
This is my code please can anybody help this is doing my head in :eek::eek:😕😕
$username = mysql_escape_string($_SESSION['myusername']);
$query = "SELECT user_info.username, user_info.password, user_info.UserID, user_info.EmailAddress, user_info.Address, user_info.Postcode, user_info.FirstName, user_info.LastName FROM user_info WHERE user_info.username = \"$username\"";
$results = mysql_query(mysql_escape_string($query))
or die(mysql_error());
while ($row = mysql_fetch_array($results)) {
extract($row);
echo $username;
echo $password;
echo $UserID;
echo $EmailAddress;
echo $Address;
echo $Postcode;
echo $FirstName;
echo $LastName;
}
?>