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 the output is supposed to look like.
  2. Full-text searching will ignore any keywords that match more than 50% of the records.
  3. Technically, CHAR(0) is the smallest you can use for storing booleans.
  4. I highly doubt that's true.
  5. Then PHP doesn't know about the correct access credentials.
  6. Echo the query.
  7. No -- never a VARCHAR for a DATE.
  8. Ignoring the obvious security issues here, I assume you have a session with their current username.
  9. Well, first things first -- that's not a normalized DB. You have repeated category columns. Second, as a result, the first multi-table query won't be able to use a proper index, so it will be VERY slow.
  10. Who set this up?
  11. Well, there are 4 options: 1) both start/end are are before your date range 2) both start/end are are after your date range 3) start is before, end is during/after 4) start is during, end is during/after 1 & 2 are good... 3 & 4 are overlaps.
  12. Better yet, store these properly as UNSIGNED INTs.
  13. If you want "latest", you'll need a timestamp somewhere.
  14. I don't see any SQL statements there.
  15. Everything can affect performance. Show us both statements, table structures, and EXPLAIN output for both.
  16. You can check EXPLAIN output to ensure proper index usage... but worry about scalability issues later.
  17. OR SET days_old = days_old + INTERVAL 1 DAY.
  18. This sounds like a fundamental php question.
  19. You'll need to use ORDER BY and LIMIT 100, and then run that in a sub-select for RAND().
  20. Ellipses can be funny.
  21. You can't have user_id in there with group by like that.
  22. And what does SHOW FUNCTION STATUS tell you?
  23. Well, if you have the date range, you simply need to check in any db record overlaps.
  24. I don't know... how much text in on an A4 page?
×
×
  • 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.