Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Sure... SELECT t.teamName AS opponents, IF( LM.matchHomeID = '1', 'home', 'away' ) AS playedWhere FROM core_matches LM JOIN leaguestats_teams t ON ( t.teamID = IF( LM.matchHomeID = '1', LM.matchAwayID, LM.matchHomeID ) ) WHERE ( LM.matchHomeID = '1' OR LM.matchAwayID = '1' ) AND LM.matchSeasonID = '4' ORDER BY LM.matchDate, opponents
  2. That's likely because REGEXP need a lvalue of expr.
  3. No, a "true" TEMPORARY table type, that resides in memory, not on disk.
  4. setTimeout and scrollIntoView.
  5. Define "redirect".
  6. fenway

    Problem

    What code is causing "object not found" to be thrown?
  7. Huh?
  8. Well, you can probably get away with Math.round() with the usual * 100, / 100 game.
  9. fenway

    GROUP_CONCAT

    Then there's something wrong with the way php is handling this... that's php output, not mysql output.
  10. fenway

    GROUP_CONCAT

    Acutally, it is valid that way... but try removing all parameters to GROUP_CONCAT().
  11. And what does it do now?
  12. Try this (untested): SELECT t.teamName AS opponents FROM core_matches LM JOIN leaguestats_teams t ON ( t.teamID = IF( LM.matchHomeID = '1', LM.matchAwayID, LM.matchHomeID ) ) WHERE ( LM.matchHomeID = '1' OR LM.matchAwayID = '1' ) AND LM.matchSeasonID = '4' ORDER BY LM.matchDate, opponents
  13. Yes, unless you need info from another table.
  14. That doesn't answer the question.
  15. I don't know of any specific tutorials, and it doesn't sound like pseudo-code will be helpful at this point... anyone?
  16. Again with the performance, eh? It's not meant to update multiple tables in the same script... it's meant for updates that require joining multiple tables to produce the result.
  17. You just need to JOIN in those other tables... but it sounds like you want GROUP BY, not DISTINCT.
  18. Because you're looking in php, not mysql. And no, there is a function for this... LPAD().
  19. Suggestions for what?
  20. That was my hunch, too....
  21. So why not use temporary tables, one for each instantiation of the script?
  22. So where do you stand with your code right now?
  23. It's a simple onblur event handler... but you do need rounding, etc.?
  24. fenway

    Problem

    What line number? I can't wade though all of that code.
  25. Your'e talking about toggling the display attribute of the element's style... with setTimeouts.
×
×
  • 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.