using a loop help


Posted on 16th Feb 2014 07:03 pm 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'];
Did you know?Explore Trending and Topic pages for more stories like this.
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?
No comments posted yet

Your Answer:

Login to answer
142 Like 10 Dislike
Previous forums Next forums
Other forums

timezone change with date()
so i put all my times for posts in my made from scratch forum(not phpbb3 or sm)
in my mysql db u

Session login issue
I'm wondering how to fix a problem I'm having with a session-based login system

Say I go to h

ctype() validation - allowing illegal characters
Hello,
I use ctype() to filter and validate a user form. However, I am trying to allow certain c

Greek characters in php
Hi,

I'm making a script and I m using for first time greek characters.
I started to write

how to load a Sys file with system load and call images?
normally you need register the module as a service with CreateService, and start the service

blank page.... nothing is happening.
I'm new to a lot of this but in the last 24hrs have learned a lot.
Installed latest version of my

do while conditions
i want to display 6 images in a 2x3 table
now what would be the correct logic to
count that th

I need some help with the IF command...
I have a large number of images in one section of my website with the .jpg format. I'm adding a bun

how to read and write into a word document using php...?
hi,
I need,reading and writting into a word document using php.




Thank u inadva

PHP mail() with images
I'm trying to get images to send along with my HTML e-mail sent through PHP mail(). I only tried vie

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash