I'm Useing session to help protect pages on my site I pass the value of the user fine, but when I use a Selcet statement it gives me this error
Warning: Supplied argument is not a valid MySQL result resource
Heres the select statement:
$result = mysql_query("SELECT * FROM user WHERE user_name = '$user_name'");
$row = mysql_fetch_array($result);
I, trying to get the user infomation accordinglly
I never had problem with this code it's a simple code
I,m thinking it has to do with the session some how.
Please help me out
TIA
Richie TM