Creating an Array from a Recordset

From: Date: Thu, 06 Feb 2003 14:04:52 +0000
Subject: Creating an Array from a Recordset
Groups: php.general 
Request: Send a blank email to php-general+get-134597@lists.php.net to get a copy of this message
I'm trying to create an array from a rocordset that will do somethingt like this: $datay=array(12,8,19,3,10,5,55,88,3); the following is the code I have attempted to create, which is not working: do { $dat = ($row_rsCOUNTRY['CountryCount'] & "," $row_rsCOUNTRY['CountryCount']); } while ($row_rsCOUNTRY = mysql_fetch_assoc($rsCOUNTRY)); $datay=array($dat); Can anyone help? Thanks

« previous php.general (#134597) next »