Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. You're looking for a join.
  2. That question doesn't make any sense. There is no such thing as "crontab code" -- you just indicate which executable you'd like it to run a given interval. That executable is likely a php script that runs whatever code you would normally run to do this work.
  3. fenway

    Help

    More significantly, you have no join condition. And I don't understand the question.
  4. Did you built that search? How does it work?
  5. You're limiting yourself to just one level of nesting.
  6. The DECIMAL column type must be one of the options -- I've always used alter statements. As for linking them together, you'll need 3 tables -- colors, cars, and the relation table. Simply store a uid tuple in the latter.
  7. fenway

    Please Help!!

    No-one is going to download your code -- find the relevant section that pertains to your issue and post it in code blocks.
  8. Then get 8 random ones, union in the one you really want, and then throw out one of the original 8 if necessary.
  9. Change FROM tplss_seasons S, tplss_seasonnames SE to FROM (tplss_seasons S, tplss_seasonnames SE)
  10. Well, something has to run code on a schedule -- either mysql or the kernel, your choice.
  11. I find that hard to believe.
  12. That's not mysql.
  13. The "simplest" method is to keep a user-defined variable, which you reset per "group", and simply filter out the rows once you've hit your "limit" -- 2. Of course, by "simplest " I mean easiest to type, not most efficient. If you want the latter, you'll need to forgo examining each record, and use an derived table to get the N-most per group (and dealing with the edge case of there not being N rows), and then join that up the chain.
  14. I mean why can't you script just check -- why maintain a flag that's always out of date?
  15. That's blank, not null.
  16. I don't understand what you're trying to do.
  17. Then you'll need to get a 7-day unique version -- you can't just sum across the days.
  18. Why can't you just check?
  19. This has been covered many times on these forums -- a simple search should reveal the relevant threads.
  20. Sorry, I don't follow.
  21. 1. store proper DECIMAL fields, format on output only. 2. use a many-to-many relation table.
  22. That's not correct...
  23. No, not all the code -- just the relevant section.
  24. What's "it"?
×
×
  • 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.