Hi I'm difficulty with arrays
My problem is as follows
I have a table that i pull two values from
(id and name_en)
what i want to do is put the value and the id into an array.
e.g 1 London
2 Paris etc
I can quite easily pull from the table and put one of the fields into an array
e.g
while($row = mysql_fetch_array($result))
{
$location[] =$row["name_en"];
}
but what i want to know is how do i also pull the id of the name_en into the array
I want to build a drop down menu using the values in the location array and have the id as the value ?
Anyone got any good help?
TIA