i am have problems with my coding for sanitizing i keep getting this error come up
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in PATH on line 4
this is my code
<?php
function staff_exists($staff_username) {
$staff_username = sanitize($staff_username);
return (mysql_result(mysql_query("SELECT COUNT('id') FROM 'login' WHERE 'staff_username' = '$staff_username'"),0) == 1) ? true : false;
}
?>