I'm using the following to select some photo, how do I incorporate 'IF EXISTS' so i can echo some text if no ID is found.
$Result = mysql_query("SELECT * FROM photos WHERE UID = '$ID' limit 30")
I'm using the following to select some photo, how do I incorporate 'IF EXISTS' so i can echo some text if no ID is found.
$Result = mysql_query("SELECT * FROM photos WHERE UID = '$ID' limit 30")
if (mysql_num_rows($Result)) echo "You have photos!";
else echo "Dude... take some photos!";