Rounding up results
| From: | Ron Piggott | Date: | Tue, 09 Mar 2010 10:32:52 +0000 |
| Subject: | Rounding up results | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-46939@lists.php.net to get a copy of this message | ||
Is there a way to round up in mySQL? This result may give 3.2 --- so I
want the result to be 4?
SELECT ( count(
reference) / $items_per_page ) AS total_pages FROM
store_product_profile WHERE store_category_reference =$reference AND
live =1