Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Just UPPER() each part of the replace.
  2. Yes, I know that... I mean if you want to "get it back" on another page you need to create continuity -- which means storing something you can use to get it back.
  3. Yiesk... why are you corrupting those dates? Leave them as proper YYYY-MM-DD and you life will be easier.
  4. Also, take a look at the rules/TOS -- marking threads as "urgent" isn't going to help.
  5. You might want to TRIM() that, too.
  6. 1 open/close per page should do it.
  7. FYI, that's only guaranteed to work for single-table update statements.
  8. Perhaps you should read though the stickies first....
  9. One datadir = one drive. You can't "span" drives with the datadir options. Why not use LVM?
  10. You need to properly store your dates using MySQL's DATE column type. You can use STR_TO_DATE() to fix this with a single update statement, and also use this function to format your form input (though a proper date picker won't have this issue whatsoever).
  11. It's barely 2 minutes... I'm sure there's something else on the interweb that can entertain you for this long.
  12. Oh, there are plenty of ways to workaround this... they're just all bad ideas.
  13. Yes, you really DO -- that's exactly how this should be represented in the database.
  14. I don't know what you mean... somehow you have to store the newly created news_id somewhere.
  15. Which mysql version?
  16. What does "not work" mean? Error? Unexpected output? Please clarify.
  17. You can specify a datadir for each instance of the server, but I'm fairly certain you can't do this on a DB level.
  18. SHOW GRANTS should work in the older version, too.
  19. This is also collation-specific.
  20. I think you're asking about LAST_INSERT_ID().
  21. You can also use "NOW() - INTERVAL 5 HOUR"..
  22. (2) is much less error-prone than (1). And to answer your 2nd question, it's simply easier to handle downstream
  23. What do you expect us to do with that?
  24. You need to keep track of the news_id in your session.
  25. If you're talking about duplicating a field, then "no".
×
×
  • 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.