Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. You needed "IS NULL", not a NOT IN.
  2. Then you looked up something else.
  3. <h2> is an html attribute -- not mysql.
  4. That doesn't make sense -- you can't random mix cities from one country with another country???
  5. SHOW GRANTS.
  6. Why 100-?
  7. There should be no need for the command line with a MySQL database.
  8. Yeah, you need joins. And mysql_result() is crazy slow.
  9. That's your entire script -- narrow it down.
  10. fenway

    Using "IN"!

    You can't fix the query without the index.
  11. MySQL can handled thousands of statements per second.
  12. Then you _are_ repeating things.
  13. fenway

    Using "IN"!

    Yikes -- how come you don't have any indexes?
  14. It will "work", but it's preferable to keep the password in scipt.
  15. Without a subquery, that's not possible -- because you'll only be able to use that value from the policies table.
  16. That's not a robust solution.
  17. You're new -- so I've added the code tags for you -- but this is required as per the ToS. In terms of your actual question, you need a join
  18. I think the child board has a sticky on this.
  19. Are you telling me that you don't use the DB for anything else on the page? If you don't care about accuracy, use INSERT DELAYED.
  20. Well, you could just iterate through them backwards, or reverse() the recordset. But if you use a subquery, you can re-order them in mysql, too.
  21. FIND_IN_SET(), perhaps.
  22. TLDR... can you be much more specific?
  23. Well, that's up to you -- you use an "eq" in your php code, and you're not even inspecting the password value via mysql.
×
×
  • 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.