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

Exporting new records
Trying to figure out the best way to set this up.

People register my site.

Their prof

Inter Company -- Resources Related Billing (Services Industry)
Hello,

My company has a scenario where:
Company A bills Company C for INTER (cross

Taylor Series Function
So I am working a a project for my intro C++ class, and I am having some trouble with a function for

Remote Database Access
Hey guys!!

OK, i'm used to only working with databases from the CPANEL, accessing phpMyAdmin

Cannot Display Array from Select Statement + Login question
Hi,
I'm new to PHP but so far so goog. I was assigend a project and I'm very close to completion.

Will this protect from mysql injection?
I do not want anything like DROP TABLE to work or any type of coding..

Heres my code.. is it

TabControl Inside ListView Not Editing
Hello everybodyI have a ListView on my page. Inside the ListView I put a TabControl, cuz I want to p

if else problem, help please
i have this script that i made only i try to also put in a if else for for some reason the script is

Displaying a record from mysql in a simple swf file
Hi,

I have a mysql database containing information I would like to display in my swf.

Recode Abap Dynpro into Web Dynpro
Hi All,
A client has asked us to look at rearchitecting a custom transaction that was developed

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