puoi fare
if(mysql_num_rows($result) == 0)
echo "niente";