Hey guys...
I have an app that displays purchases made by customers.
I would like to make it so the script will automatically add the thousand or million sign like this:
980000 to 980,000
or 2000389 to 2,000,389 etc.
The thing is that it must loop at every row in the database table to count the lenght of the string (using the strlen function I guess?) and then add the thousand or million sign accordingly.
My question as you might have guessed is what's the better way to do it?