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 !

 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.