Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. This is a DB wrapper class error with PDO, not with MySQL.
  2. What is set to the current day?
  3. How else would it know what values to use?
  4. I don't really understand the question.
  5. Not certain that LEFT JOIN .. IS NULL wouldn't have work here, but if you have it working, and it's efficient, then ok.
  6. I don't follow.
  7. You sort of have no choice at at low level -- you need to map user X to user Y.
  8. Are they always groups of three?
  9. fenway

    update error

    Echo the update statement alone.
  10. What are you trying to do again?
  11. That's not helpful... we need table definitions for the tables being queried, EXPLAIN output, etc.. see my sig.
  12. You're missing the "IS NULL" condition in your where clause.
  13. Actually, specify a column list without mentioning the auto-inc field, and you won't need NULL at all.
  14. I don't understand that logic whatsoever -- why not just issue a query with LIMIT 15?
  15. Echo the actual query, not the php code... but it looks like a version issue.
  16. Let's see some EXPLAIN output.
  17. You're close... I assume you're using innodb?
  18. We'll need to see the actual mysql query, and the relevant table structures.
  19. fenway

    date_format

    Query to what? You've given us very little information. What selected date?
  20. Well, I'd like to see $query echo'ed.
  21. I don't follow your second example.
  22. Well, which "one" of the many matching rows would you want... how would you decide?
  23. You need to specify a table prefix, just like for your ON condition -- use t2.ID.
  24. It doesn't ... unless you (or your IDE) used backticks.
×
×
  • 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.