[snip] I have a database table with the column described as address_line_2 varchar(255) NOT NULL default '',
if($row["address_line_2"]==' ') // there is a space between the quotes [/snip] address_line_2 varchar(255) NOT NULL default '', <--- no space between quotes so if('' == $row['address_line_2]){ //no space between quotes echo " "; } else { echo $row['address_line_2']; } HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php