Can anyone tell me what is wrong here. I am trying to make it so that if a person already has 2 banners uploaded, then show something else other then the upload form. I keep getting show something else.... and I shouldnt
$query2 = "SELECT count(*) from banners where user_id='$user_id'";
$result2 = mysql_query ($query2);
if ($result2 <= 2)
{
show form
}else{
show something else
}