justsomeguy Posted September 6, 2019 Share Posted September 6, 2019 That part of the query is fine, it's the part that follows where you add errors. Link to comment Share on other sites More sharing options...
Html Posted September 6, 2019 Author Share Posted September 6, 2019 That part alone isn't enough to display a comment from the forum table where id is. { $q .= $id . ','; } that part is useless to that SQL line? Link to comment Share on other sites More sharing options...
justsomeguy Posted September 6, 2019 Share Posted September 6, 2019 I wouldn't say it's "useless," but you're going to end up with a SQL query that has a syntax error in it. Just look at what the query is going to be after you do that. Link to comment Share on other sites More sharing options...
Html Posted September 6, 2019 Author Share Posted September 6, 2019 I uncertain what to do now, I thought with the shop code it would be similar to what I want. On the example here at W3 schools it is "Customers"; https://www.w3schools.com/sql/sql_where.asp Link to comment Share on other sites More sharing options...
justsomeguy Posted September 6, 2019 Share Posted September 6, 2019 Right, and can you pass the exercise at the bottom of that page? It's just showing how to build a select query. That's what you need to do. You're not doing it correctly. Link to comment Share on other sites More sharing options...
Html Posted September 7, 2019 Author Share Posted September 7, 2019 I am missing the speech marks from "user_id". As for these exercises, didn't learn anything from them. Show answer just reveals what goes where. I did how ever look at the Delete one, but firefox doesn't support the Websql. But that didn't help me at all. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now