[PHP-DB] Suppressing NULL values in search results

2001-02-19 Thread Cameron Metcalf
Hey, I've been using PHP for 'bout a month and my programming abilities are pretty limited. I'm using a script (further below) to retrieve results from a MySQL database. It's intended to retrieve potentially 6 fields of information. Some of these fields in the record, though, may be NULL, but

Re: [PHP-DB] Suppressing NULL values in search results

2001-02-19 Thread Lennin Arriola
I used to do this: function nice( $value ) { if ($value=="") { return "-nbsp;"; } else return $value; } print nice($row["company"]) Lennin Arriola [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional