Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. My comment was extremely helpful -- I kept you from violating your database's referential integrity. Just a simple counter should do it -- if you need help with that, I'll move this to the php forum.
  2. Further to the last post, NEVER use implicit notation -- it's just evil.
  3. You don't want this at all. If you want to number your records, do so in PHP -- leave the DB records alone.
  4. It's really annoying that the update_time isn't maintained on windows. So really, they're just using the same code on both platforms, instead of doing it properly. Seems like an easy patch to commit.
  5. I mean, the CHECKSUM algorithm is really just millions of CRC32() calls, and with a large enough table, it's unlikely to collide in hash generation.
  6. Oh, it's possible, and FIND_IN_SET() should work -- it's just not advisable.
  7. That's not a normalized table structure.
  8. Sorry, I don't follow -- the daemon always stay running.
  9. Yes, but incredibly unlikely.
  10. LOAD DATA FROM INFILE works wonders.
  11. An EAV table might work.
  12. Your where clause is incorrect. You need to compare each separately -- table1 to table2, and then table1 = somevalue.
  13. Sorry, I dont' follow.
  14. Yup -- I stumbled upon this issue a while ago -- SHOW TABLE STATUS only works for MyISAM, and even then, only on Linux. Crazy. Right now, since I'm using a DB wrapper anyway, I just automatically update a system table (with one record per table) whenever my app issues any update/insert/delete statements. Triggers is a technically a better way to handle this, but because you have to have 3 on each table, I just find it really annoying to maintain.
  15. Use the TIMESTAMP columns, and mysql will be able to auto-convert for you.
  16. That's because you're quoting it -- don't.
  17. What's a slug value?
  18. Define "not working" -- and post some raw sql commands, too.
  19. fenway

    Search .

    Lucene or sphinx.
  20. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=309157.0
  21. fenway

    PHP SELECT

    IF the most recent 'date_updated' is the one one you want back, then a simple order by date desc limit 1 should do the trick.
  22. Sorry, I don't follow.
  23. Sounds like a job for AJAX.
  24. I'm sure there are countless tutorials on this issue -- and a similar number of threads on these forums.
  25. Well, if you have access to both servers via php, you can SELECT from one and INSERT into the other.
×
×
  • 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.