Jump to content

[SOLVED] adding number_format() to a while statement


lebedev9114

Recommended Posts

Hey guys I am in process of learning and creating my first real project online, and i need some help with the follwowing:

while ($row = mysql_fetch_assoc($Result)) { ?>

<tr>

<th><?php echo $row['de'] ?></th>

<th><?php echo $row['ru'] ?></th>

<th><a href="getlink.php?id=<?php echo $row['id']; ?>">More Info</a></th>

<th><?php echo $row['nl'] ?></th>

 

I want to number_format()    'de', 'ru'  , which are integers in the database, how do i do this inside or outside of the while statement?  any help would be really appreciated !

 

when you tried it, what was the result?  don't you get that urge to just try things out?  i know i do.

 

it's either gonna give you an error, or the correct result.

 

and yes, you can put it inside the loop, but did you really need somebody to tell you that?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.