I have the following code
$user_id = $_GET['user_id'];
if ((!isset($user_id)) || (!is_numeric($user_id)) || (!$user_id > 0)){
echo "That user does not exist!";
exit();
}
$sql_id_check = mysql_query("SELECT * FROM cms_users WHERE user_id='$user_id'");
$count_check = mysql_num_rows($sql_id_check);
if ($count_check == 0) {
echo "That user does not exist!";
exit();
} else{
//Collect variable information from database
Every time I call this script I get 'That user does not exist!' even when they do exist.
I echoed user_id to the screen and it is receiving this value without problems.
Any ideas?