Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Unless you're using bind parameters, it's always better to quote strings -- particularly if you're writing raw SQL via PHP.
  2. That doesn't really matter -- take the UPDATE, write the equivalent SELECT,and check EXPLAIN.
  3. Sounds like you're asking the same question again -- don't do that -- wait for a response. Topic locked.
  4. That means 'create the indexes on the columns above' -- you're currently performing joins on un-indexed columns.
  5. Then you're going to have to provide table definitions and sample data -- which, by the way, is requested & required by the posting guidelines.
  6. team_points.team_id is one of the missing indexes. payments.user_team_id is another.
  7. The fact that it's an ENUM has absolutely no bearing on updating the values.
  8. You're missing AND and OR in your WHERE clause without parentheses.
  9. We're happy to help -- but you've only provided some PHP code -- I can't possibly guess what that's doing.
  10. Again, we're not going to debug your code for you -- show us an INSERT statement.
  11. fenway

    help required

    Start by telling us what part of the database queries doesn't work.
  12. This topic has been moved to PHP Coding Help. http://forums.phpfreaks.com/index.php?topic=364540.0
  13. Let's start by looking at EXPLAIN output for both queries.
  14. Can you give a concrete example?
  15. There wasn't an error, it only output a single RequirementType, there's 6 rows in that table. Then show us the data in the rows you expect to see.
  16. That JOIN you were provided with should work -- what's the error?
  17. Care to elaborate on that node-style solution?
  18. I'm not one to open attachments -- but a new dedicated user sounds like the way to go.
  19. Well, you posted apache error messages about a file not exists. And connecting to mysql as 'root'? Definitely not the solution.
  20. If you're joining, you'll need at least one index per joined table.
  21. More importantly, never combine first and last names into a single column.
  22. You haven't given us tables. You haven't given us the offending queries. How are we possibly supposed to help?
×
×
  • 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.