Name: Anonymous 2008-05-18 14:46
how do you solve this age old problem of rounding off a number
$pages = $returned_rows/$items_per_page
when i use php functions to round the result off i end up with 1 for example if i have 7 results and 5 items on every page
this happens from time to time, whenever uneven numbers come up, so how do you guys solve this? i was going to look at other products such as vbulletin but i figured this could be a good topic as a break from all the meme spam
$pages = $returned_rows/$items_per_page
when i use php functions to round the result off i end up with 1 for example if i have 7 results and 5 items on every page
this happens from time to time, whenever uneven numbers come up, so how do you guys solve this? i was going to look at other products such as vbulletin but i figured this could be a good topic as a break from all the meme spam