Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Why not a covering index on ( user, id )?
  2. What does this produce?
  3. I meant without the FORCE INDEX....
  4. Table aliases.
  5. It's most definitely slower.
  6. Did you try a manual REPAIR operation?
  7. I'm not faimliar with your DB -- you want to exclude comments that are linked to pictures?
  8. You can order by as many fields as you'd like....
  9. DISTINCT is not a function -- you likely want GROUP BY... but you may need to join on that dervied table.
  10. Did not finish, or crashed? What does CHECK TABLE say?
  11. Yes, joins are the right way to combine conditions across tables.
  12. Why not directly INSERT INTO... SELECT WHRERE?
  13. fenway

    filter

    I don't see two conditions... and we want you to echo $query_mass.
  14. Why not disable FK checks?
  15. You're trying to store multiple values in a single field... it's not fun.
  16. You mean a JOIN?
  17. Can we see the EXPLAIN output?
  18. What do you want to count?
  19. I'm confused... show us some sample output, and what's wrong with ti.
  20. the column "fulltext" is the culprit.
  21. Try: SELECT t1.* FROM terms AS t1 LEFT JOIN terms AS t2 ON ( t2.term_relation_field = t1.term_relation_field AND t2.term_lang = 9 ) WHERE t1.term_lang = 1 AND t2.term_relation_field IS NULL
  22. That's because you need to change your outer quotes to doubles -- otherwise your variable won't get interpolated.
  23. I'm not sure what you mean... but $cookie will not match that string directly, no.
  24. It's a salt. FYI, it's better (more secure) to do this in php, and then pass the salted-and-MD5'd string to the db.
×
×
  • 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.