Newbie question on Array

From: Date: Sun, 28 Mar 2004 19:27:44 +0000
Subject: Newbie question on Array
Groups: php.general 
Request: Send a blank email to php-general+get-181635@lists.php.net to get a copy of this message
Sorry, I am new and could not supply the correct search strings on search sites to answer by question. I am trying to construct an array with key-value from a resultSet which will be used often within the page or between pages. Which looks like this: $optionBox="select used_1, rub from rub_table order by rub asc"; $rs_box=mysql_query($optionBox,$con); $arr=Array( while($row=mysql_fetch_array($rs_box)) { '$row["used_1"]' => '$row["rub"]' , }); ,---> This does not need to appear in the last loop. Is this possible?, if yes what is wrong with my code?. many thanks for your help.. (._.)--->Carlson

« previous php.general (#181635) next »