RE: [PHP-GENERAL] help!!! replace 0 with word "unavailable"

From: Date: Wed, 17 May 2000 06:28:58 +0000
Subject: RE: [PHP-GENERAL] help!!! replace 0 with word "unavailable"
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-127@lists.php.net to get a copy of this message
<? $result=mysql_db_query($SQLDB,"SELECT price_list FROM price_lists"); while($row=mysql_fetch_array($result)){ echo "</tr><tr bgcolor=$bgcolor><td bgcolor=\"#5B539D\">&nbsp;</td><td td class=\"tabela\" align=center>".($row[price_list]==0?"unavailable":$row[price_list])."</td></ tr>\n"; } ?> Should do the trick just fine

« previous php.general (#127) next »