I was wondering if after all these hours of trying you could help me
After hours of trying i still have a problem retrieving data from a mysql query: This is my query:
$res =mysql_query("SELECT * FROM user WHERE username =".$_SESSION['user']);
The user in the session is the current username.
i have an if
statement like this:
if(!$res)
{
die('Invalid query: ' . mysql_error());
}
i run the code to check if the mysql_error isn't thrown but everytime i get this error:
Invalid query: Unknown column 'Amando' in 'where clause'
Can someone explain to me what im doing wrong and maybe help me fix it