Re: Suppressing NULL values in search results
| From: | Lennin Arriola | Date: | Mon, 19 Feb 2001 19:05:41 +0000 |
| Subject: | Re: Suppressing NULL values in search results | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-6755@lists.php.net to get a copy of this message | ||
I used to do this:
function nice( $value )
{
if ($value=="")
{
return "- ";
}
else return $value;
}
print nice($row["company"])
Lennin Arriola
lennin@conexion.com