I want to query my database and get two things, store them in an array and retrieve them later.
Let's say the fields are zone_id and zone_name.
currently i am trying this to store them in array like this
$zone_array = array('zone1index' => zone1name,
'zone2index' => zone2name,
'zone3index' => zone3name);
and retrieve it by something like this
$zone_id = $zone_array[index, 0]; //zero indicating the key of the one I want
$zone_name = $zone_array[value,0];
Is a retrieval like this even possible or am I storing the array incorrectly?
I will be incrementing the key each time I call the array, so I will need to be able to have the '0' variable.
Thanks for your help. Let me know if you need more clarification.