Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. I don't follow your second example.
  2. Well, which "one" of the many matching rows would you want... how would you decide?
  3. You need to specify a table prefix, just like for your ON condition -- use t2.ID.
  4. It doesn't ... unless you (or your IDE) used backticks.
  5. Yup... mysql date math is very powerful.
  6. Show the desired order... also, are these the only examples of possible content?
  7. Huh?
  8. Everything -- script, db connection, etc. -- need to be UTF-8 aware.
  9. Check the section_id that you're passing in, and all of the section_ids from your query.
  10. Do any users have the replication privilege?
  11. Welll, you're doing an inner join, so you'd need all 3 selections made for the code to return anything.
  12. Even faster if you use COUNT(*).
  13. Just be careful -- there's a maximum length to group-concat which is very short by default.
  14. everything is possible...but only with table structures.
  15. Why not... simply compare a list of recipes with total # of ingredients to the number of ingredients available.
  16. Nowhere near enough info... but there are countless tutorials on inserting images into mysql.
  17. Those are separate issues -- kickstart is trying to figure out which side is the problem. I was simply trying to determine if the data is coming back properly, irrespective of htmlspecialchars(), with has nothing to do with mysql.
  18. Hmm... I would have thought you'd use those in the column list? Not that it really matters in this case.
  19. It's important to determine if the query itself produces the correct resultset, and the php logic is flawed, or vice versa.
  20. Agreed... but if there's a fixed format, you can fudge it.
  21. Interesting approach... wonder if the UNION logic would have been simpler, though.
  22. Yes, I agree that it's fine... so where's the mysql issue?
  23. Hmmm... those seem reasonable. Have you confirmed that you have a valid connection to each DB?
  24. Yes... avoid correlated subqueries if possible; but not all of them are evil.
  25. Assuming you have a backup, there are many other options to REPAIR that you can issue.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.