I have the following
[code=php]$aomcheck = “SELECT accesslvl FROM users WHERE username=’$username'”;
$aomcheckresult = mysql_query($aomcheck);
echo “Access Level: “.$aomcheckresult;
, and I have already connected and everything to the sql db. Anyways when I run this it returns the result Access Level: Resource id #3 which I learned recently that that meant that the table was empty, but it is not. $username is set correctly, all table names and everything is correct. I have personally checked more than once, to insure that the information is in fact there, but it continues to echo out that, any help here? Thanks.
[b]EDIT
[code=php]$aomcheckresult = mysql_query(“SELECT accesslvl FROM users WHERE username=’$username'”);
$aomrow = mysql_fetch_array($aomcheckresult);
and then echoing out
[code=php]echo $aomrow[‘aomcheckresult’];
but that did not work either. The reason I tried this was because it worked for me recently in a very similar thing(last visit). Anyways, is there something wrong with that code or what. Again, Thanks.