Jump to content

Unknown column 'admin' in 'where clause' error msg?


acmbar

Recommended Posts

Hi folks,

I get the above error when i run the following code:

mysql_connect("localhost.baristajob.com.au","baristaj_Admin","baristajob01");

mysql_select_db ("baristaj_employment");

$getuser= mysql_query ( "SELECT email FROM users WHERE username ={$_SESSION['username']}") or die (mysql_error());

 

echo "$getuser";

 

Any help is appreciated!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.