here is a code snippet:
$locationh = $dbh->prepare_cached("select id,name from location where id<100
order by id");
$locationh ->execute();
while (@row=$locationh->fetchrow_array) {
$loc{$row[0]} = $row[1];
}
now, when i get the %loc and print it as a key,value pairs, it gives me the
wrong order:
<option value=2>zone2</option>
<option value=1>zone2</option>
which is not what i want, what i want is
<option value=1>zone1</option>
<option value=2>zone2</option>
thats it, i hope this could make it more clarified.
thanks guys
--
Hytham Shehab