another 3 questions about PHP
Posted: Fri Oct 25, 2002 12:09 pm
... well people, this time is about PHP functions:
1) What function use to format the output of a calculation:
i.e. 35.26 x 142.99 = 5041.8274
but I'd like to show this quantity like this: 5041.83
(only 2 decimal, and the 2nd decimal must be approximate to the next number if the 3rd. one is >= 5)
2) is there some function on PHP to get the mayor number stored in a colum table of any MySQL Database
3) if a value in a table is null, and I increment in one, this value would be a problem ? (I'm incrementing in one the value 'cause suppostly there is a number stored there, so I dont know if would be a problem incrementing in one a null value)
thx for ur valuable help guys!
1) What function use to format the output of a calculation:
i.e. 35.26 x 142.99 = 5041.8274
but I'd like to show this quantity like this: 5041.83
2) is there some function on PHP to get the mayor number stored in a colum table of any MySQL Database
3) if a value in a table is null, and I increment in one, this value would be a problem ? (I'm incrementing in one the value 'cause suppostly there is a number stored there, so I dont know if would be a problem incrementing in one a null value)
thx for ur valuable help guys!