using a loop help

Posted on 16th Feb 2014 by admin

Hi guys , i need some help. I have this loop :
while ($row = mysql_fetch_assoc($Result)) { ?>
<th><?php echo "<a href=http://".$row['booking_site'].">";
echo $row['bookingname'];
echo "</a>";
?>
</th>
<th><?php echo number_format($row['com'],0,'.',','); ?></th>
<th><?php echo number_format($row['AlexaRanking'],0,'.',','); ?></th>

'com' - is an integeir
i need help with replacing this $row['com'] IF the number is 0 with a DASH (-) how may i include an if an else statement or a prematch inside or outside the while loop?

Other forums