I just set up my tables for the portfolio section of pset7. Next step is to query the tables but I get a weird error on the following line:
$rows = query(“SELECT symbol, shares FROM portfolio WHERE id = ?”, $_SESSION[“id”]);
The error is:
Syntax error, unexpected 'symbol' (T_STRING)
'symbol' definitely refers to the 'symbol' after select (I changed the name and the altered name appeared in the new error).
The line of code was taken almost directly from Zamyla's video on portfolio. I have also seen it in other people's code and they did not get the error I am getting.