Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Of course -- I just mean to say that there's nothing wrong with tying a MySQL DB to a NoSQL document image store -- pick the right hammer for each nail.
  2. I'm not sure where your question lies -- in the DB queries,, the PHP syntax for loops, or the HTML rendering?
  3. This is a common misunderstanding -- if you have a bowl of fruit, and you ask someone to hand you apples and oranges, you'll likely get 2 kinds of fruit. But this isn't a Boolean AND -- it's a Boolean OR. Asking for the fruit that is both an apple AND and orange will result in no matching fruit.
  4. That's not how a forum works -- share your advice with everyone.
  5. fenway

    MYSQL Problem

    Obviously, adjust to suit your column needs accordingly (untested): SELECT * FROM files INNER JOIN platforms ON ( files.id = platforms .file_id ) INNER JOIN resolutions ON ( files.id = resolutions.file_id ) WHERE resolutions.resolution = '$match_resolution' AND platforms.platform ='$match_platform';
  6. To be clear, it's a bad idea to store images (file contents) in an RDBMS -- noSQL is great for this stuff (because your files are still accessible from multiple nodes, etc.).
  7. What makes you think you're getting table locks?
  8. That's how date strings are sorted, too (i.e. outside of mysql).
  9. The comparison operator will always "work" -- but the implicit casting just might not do what you'd expect.
  10. I suppose you can do it that way, though I never have -- what happens in PHP if the $id's aren't contigious? Will you get a sparsely populated array?
  11. If you're talking about InnoDB tables, it's very rare to get a table lock during normal CRUD operations -- unless you somehow issue a write statement that can't use an index.
  12. Writing out N forms isn't great either -- what if they want to make multiple changes? Usually, you just need another field with the ID, and then append this ID to each field name.
  13. MySQL doesn't know about clicks -- what are you actually trying to achieve?
  14. Without a query, EXPLAIN is meaningless.
  15. What we didn't "trust" was your explanation -- as you indicated, that's the hardest part to communicate.
  16. First, make the query without joining back to the contact name table.
  17. I simply meant that if you executed the statement, if would be plainly obvious from the syntax errors where the problems are.
  18. And TIMESTAMPs have time zone fun built-in.
  19. You know that SQL can tell you if your statement parses correctly -- and we can't guess -- but I can tell you that without quoting, you're going to in trouble. That's what placeholders are for.
  20. Please don't mark topics solved without posting solutions.
  21. There are tools that will do this -- mysqldump isn't one of them -- you're talking about diff-ing records and schemata.
  22. Use "SHOW OPEN TABLES" within the session.
×
×
  • 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.