Hi, i have this on my website but i must have it wrong, what i need is $usercommander to equal what is in the field unless the field is empty then it should equal None.
$usercommander=mysql_result(mysql_query("SELECT username FROM users WHERE id='$r[commander]'"), 0) or die("None");
but i get this error
Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 5 in /home/*****/public_html/profile.php on line 100
None