All Questions
2 questions
0
votes
2
answers
189
views
pset7: query problem
When I try these with query function it is giving me an error:
query("SELECT * FROM users WHERE username LIKE %?%", $_POST['username']);
query("SELECT * FROM users WHERE username LIKE '%?%'", $_POST['...
0
votes
1
answer
211
views
pset7 unknown column in where clause
This throws an error saying YHOO is an unknown column...I thought 'symbol' was the column name in this query?
$id = 6;
$symbol = "YHOO";
$shares_query = query("SELECT shares FROM portfolio WHERE id = ...