I am getting Parse error: syntax error, unexpected '$sql' (T_VARIABLE) in the following sql statement. Can anyone help??
$sql = "SELECT items, price FROM shop_table WHERE shop = '$shop' AND stations = '$station'";
I am getting Parse error: syntax error, unexpected '$sql' (T_VARIABLE) in the following sql statement. Can anyone help??
$sql = "SELECT items, price FROM shop_table WHERE shop = '$shop' AND stations = '$station'";
The problem probably is that the line before your SQL query is missing semicolon (;)
. The error begins in $sql so it has to be something before.