-1

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'";

1 Answers1

1

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.

Sinto
  • 3,915
  • 11
  • 36
  • 70