Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. I don't understand what you're tryign to do with the second part.
  2. You'll notice that the error doesn't match the posted statement.
  3. You can't mix * with GROUP BY.
  4. FYI, DISTINCT is not generally useful with *.
  5. This is a DB wrapper class error with PDO, not with MySQL.
  6. What is set to the current day?
  7. How else would it know what values to use?
  8. I don't really understand the question.
  9. Not certain that LEFT JOIN .. IS NULL wouldn't have work here, but if you have it working, and it's efficient, then ok.
  10. I don't follow.
  11. You sort of have no choice at at low level -- you need to map user X to user Y.
  12. Are they always groups of three?
  13. fenway

    update error

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

    date_format

    Query to what? You've given us very little information. What selected date?
  24. Well, I'd like to see $query echo'ed.
×
×
  • 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.