Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. If you change FROM goals, games to FROM (goals,games) you'll be ok. In general, don't mix comma and JOIN syntax.
  2. Why the subquery -- just substract.
  3. 5000 isn't that many -- the SELECT on such small data should be fairly quick -- of course, how are you determining which 5000 to choose?
  4. It's always simpler to have a shared table.
  5. What does mysql think these values are set to?
  6. It doesn't have to be a page -- use a URL parameter -- and then you can get a pretty URL later.
  7. That's just the wrong tree structure to use.
  8. So group by the same expression.
  9. Sure... STR_TO_DATE().
  10. What's the question?
  11. You'll need to get back to top N for each group, and then just throw out the first one.
  12. TLDR.
  13. You'll need two such where conditions.
  14. Can't see the actual query that way -- echo it with all those variables.
  15. I don't follow.
  16. Why is this marked "solved"?
  17. Change your "*" to "COUNT(*)", and then either use a column alias, or mysql_result.
  18. Well, "TEXT" fields can be very large -- unless you specifically said otherwise. LENGTH() should help.
  19. In the column list.
  20. What's wrong with them?
  21. What makes you think it' secure/
  22. This sounds like a support question for a product that's been released by someone else.
  23. The JOIN is often better for performance.
  24. Sorry, but no one is going to sift to 16kB to figure out your issue -- I doubt it's that complex -- just narrow it down and post the relevant snippet.
×
×
  • 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.