Hi,
I have a simple mysql db table named 'users'
inside 'users' i have
id----user---------pass-------level
1bob abc0
2joe____xye4
3tyler___3gtje0
4eno__iwjfidk_1
ok, so I will only need to get the 'level' from one user at a time. I know the 'user' at the time of the mysql call.
I am trying something like this, but i keep getting an error, so i know this is not correct
$user="bob";
$query = "SELECT level from users where user='$user'";
$result = mysql_result($query) or die ("Error in query: $query. " . mysql_error());
echo $result;
Any help with this is appreciated.
Chuck