ok, i know this one qualifies as a newbie question.
i have a list of items that i need an associative array for.
normally, i would not need this for this info, but now i need to be able to sort them.
so, i keep getting an error about the way i am trying to set up the array.
i am trying to build it out of two other arrays.
like this:
$result = mysql_query("SELECT Pager_Display, Sensor_ID FROM `Fields` WHERE Customer_ID = '{$Name}' ");
$num=mysql_numrows($result);
$i=0;
while ($i < $num){
$sensors[$i] = mysql_result($result,$i,"Sensor_ID");
$Fields[$i] = mysql_result($result,$i,"Pager_Display");
$Field_Sensor_Array($Fields[$i]=>$sensor[$i]);
print $Fields[$i];
print ' is sensor ';
print $sensor[$i];
$i++;
}
i hope whatever i am doing wrong is obvious
this is the error i get
unexpected T_DOUBLE_ARROW
thanks