selecting count and then dumping to an array

From: Date: Sat, 07 Jun 2003 14:13:20 +0000
Subject: selecting count and then dumping to an array
Groups: php.general 
Request: Send a blank email to php-general+get-150576@lists.php.net to get a copy of this message
Hi, Is there any way to get a COUNT of records (SELECT count(*) FROM main_my where type=$t) for 5 types using hopefully one select statement and then dumping that into an array? The reason I am asking is running 5 selects on the DB at once is not a very good idea...right? Thanks, -Ryan http://MrSahaf.com - The Iraqi (Dis)information ministers site ("We will slaughter you all!")

« previous php.general (#150576) next »