Hi,
Can anyone help with this code ?
$sql = "SELECT max(DrinkOrder) AS DrinkOrder, DrinkType FROM DrinkTable "
. "GROUP BY DrinkType";
$result = mysql_query($sql);
while ($myrow = mysql_fetch_array($result)) {
$highest[$myrow["DrinkType"]] = $myrow["DrinkOrder"];
}
I'm trying to create the associative array $highest dynamically using the results from the sql query.
This code gives me an error relating to the single line inside the while loop:
Parse error: parse error, unexpected T_VARIABLE