Re: [PHP] selecting count and then dumping to an array

2003-06-07 Thread Jim Lucas
x27;, '$5') GROUP BY type; Jim Lucas - Original Message ----- From: "Ryan A" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 07, 2003 8:53 AM Subject: Re: [PHP] selecting count and then dumping to an array > Thanks guys, > will give it a sho

Re: [PHP] selecting count and then dumping to an array

2003-06-07 Thread Ryan A
Thanks guys, will give it a shot and write back if i have any problems. Cheers, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] selecting count and then dumping to an array

2003-06-07 Thread Peter Goggin
Try select type, count(*) from table group by type; This should return a count for each distinct type value. Regards Peter Goggin - Original Message - From: "Ryan A" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 08, 2003 12:13 AM Subject: [PHP] selecting count and then