how to use prepared statement with aggregate functions ?
A:
prepare your statement as you would do for any other sql statement, then execute your query, as you would do for any other sql query, and fetch the result. the only difference is that a query with an aggregate function will return only one record containing the result.
Adrien Plisson
2009-11-18 10:08:15