Need to get total number from query!

From: Date: Fri, 15 Dec 2000 06:24:19 +0000
Subject: Need to get total number from query!
Groups: php.general 
Request: Send a blank email to php-general+get-30455@lists.php.net to get a copy of this message
Just a quick question. I have a query as such: SELECT q9 AS names, count(*) AS numbers FROM table GROUP BY q9 ORDER by names desc; this gives me something like: ------------------------ ans1 : 10 ans2 : 20 ans3 : 30 ------------------------ what i would like is a way to get the total of those 3 figures as a variable and plug that in at the bottom... is there a quick way? thanks! Sunny __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/

« previous php.general (#30455) next »