Re: Newbie question on Array

From: Date: Sun, 28 Mar 2004 19:31:15 +0000
Subject: Re: Newbie question on Array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-181636@lists.php.net to get a copy of this message
You can't do it that way.. You'll probably get parse error.. -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com <carlson@ngwa.ch> skrev i meddelandet news:1080502064.406727305303a@www.ngwa.ch... > > 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 (#181636) next »