RE: [PHP-GENERAL] help!!! replace 0 with word "unavailable"
[email protected] ("Liz Kimber")
| Newsgroups | php.general |
|---|---|
| Message-ID | <[email protected]> |
<?
$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\"> </td><td td
class=\"tabela\"
align=center>".($row[price_list]==0?"unavailable":$row[price_list])."</td></
tr>\n";
}
?>
Should do the trick just fine