Menu
Basically what I want to do is edit the results array that gets returned after a MySql call. Here is what I am currently doing:
[code=php]
while($myrow = mysql_fetch_array($result))
{
$zipcode = $myrow[‘Zip’];
$miles = $zips[$zipcode]; // returns how far the zipcode is from the destination
$result[$count][‘Zip’] = $miles;
$count++;
}
I get the PHP error messager “Warning: Cannot use a scalar value as an array” when executing this code because apparently $result isn’t an array. Any advice?