Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Well, it's still limited to 65k.
  2. Or use SHOW CREATE TABLE.
  3. Echo the actual queries, not your code.
  4. The query determine what "matches" -- with your LEFT JOINs and such -- and you choose with matching table rows get deleted.
  5. The refman is your friend.
  6. mysql_num_rows($result, $connection) Should only take one parameter... according to the refman.
  7. fenway

    ezSQL

    No idea... but that's a PHP DB class issue, not a mysql problem.
  8. I don't understand the question.
  9. You're not closing your column list with a parent.
  10. Well, I don't see any reference to month/year in your join condition.
  11. Just suggesting that BETWEEN is a simpler operator to use.
  12. The error was simply the fact that the outer table alias isn't visible to the subqueries.
  13. With DATE_FORMAT().
  14. "Topic solved" button right above the quick reply area.
  15. Well, the query looks like it should be OK.... have you checked the output values of created and pasttime?
  16. That's *precisely* what enum does. But aschk is correct -- ENUM is usually a futile shortcut for non-system fields.
  17. Then please post your solution for everyone's benefit.
  18. Leave your WHERE clause as-is, and add an expression to your column list -- like CURDATE() BETWEEN start AND end
  19. Like with yet another JOIN?
  20. What does "slip out" mean?
  21. You can try using multi-valued INSERT statements... but yes, php has a max execution time.
  22. Use table aliases and prefixes.
  23. Both PHP and MySQL offer md5 functions.
  24. You could use IF() to check for the Y condition in the order by clause.
  25. Huh? You're only getting back one field.
×
×
  • 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.