Thread: PHP-SQL
View Single Post
 
Old January 8th, 2008, 07:48 PM
sdi126 sdi126 is offline
Authorized User
 
Join Date: Sep 2007
Location: , , .
Posts: 56
Thanks: 0
Thanked 1 Time in 1 Post
Default

You can try checking for nothing with
Code:
if(trim($variable) !=''){
//do title stuff
}
or check the number of rows returned
Code:
$query = mysql_query("select * from table");
if(mysql_num_rows($query) > 0){
//do title stuff
}

http://mynameissteve.com