Jump to content
Html

Upload image code trying to add db connect to it

Recommended Posts

That part of the query is fine, it's the part that follows where you add errors.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...