I have a PHP script that's crashing on this code:
From what I can tell it should be working..
The error I get is:
"arse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /Library/WebServer/Documents/order.php on line 22
"
Anyone have any clue as to why this is not working???
Thanks
Code:
$i = 0;
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
printf("prices[%s] = $line['price'];", $i);
$i++;
}
From what I can tell it should be working..
The error I get is:
"arse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /Library/WebServer/Documents/order.php on line 22
"
Anyone have any clue as to why this is not working???
Thanks