Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Dare I ask why you're letting users create copies of a database?
  2. That's as easy and adding/remove the appropriate rows from the lookup table. That's easier to handle if your application.
  3. fenway

    Versioning

    In general, the storage engines of MySQL are designed for just that -- storage -- and anything even remotely useful requires black magic.
  4. Why not simple include count(b) as an aliased expression?
  5. It really depends on how many levels deep you're storing, how large the table is going to be, and how often it's going to be changed, and it what ways.
  6. fenway

    Versioning

    Ultimately, the most robust way is to effectively duplicate the row with every change -- how you decide to manage the duplication is up to you. Of course, as I mentioned earlier, maintaining a relational DB with versioning is a very Hard problem, and working around it requires a variety of assumptions and limitations, based on your particular scenario
  7. Adding what?
  8. Yes, that's the proper procedure.
  9. SELECT game_datetime, home_team_temp, visiting_team_temp , CONCAT(h.mascot, ' ', h.city) AS home_team, hl.logo_url AS home_logo_url , CONCAT(v.mascot, ' ', v.city) AS visiting_team, vl.logo_url AS visiting_logo_url FROM schedules INNER JOIN teams AS h ON ( h.id = schedules.home_team_id ) INNER JOIN logos AS hl ON ( hl.id = schedules.home_team_id ) INNER JOIN teams AS v ( h.id = schedules.visiting_team_id ) INNER JOIN logos AS hl ON ( hl.id = schedules.visiting_team_id )
  10. Not literally dump -- var_dump() the output.
  11. Do you have the front-end? the back-end? is something broken? is this a design question?
  12. fenway

    Versioning

    In the general case, these simple implementations are nowhere near sufficient -- this assumes that nothing every references the blog table.
  13. This is a full-text search request -- not great for joins, and not great in general.
  14. No, you can't do that -- dare I ask why you want to?
  15. You need to use the former query as a sub-query of the latter.
  16. I am so very confused -- why not simply join the team table twice, one for home, once for away/
  17. Dump $get_info, see what happens.
  18. I don't understand which side of the script you're asking for help with.
  19. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=315853.0
  20. You're talking about a proper full-text search, then?
  21. That's wonderful -- how about posting your solution, too?
  22. You can cheat temporarily with STR_TO_DATE(), but that's a hack.
  23. I see NO possible_keys.
  24. Not sure that a year table is appropriate at all. But the "value" of your interface fields should be the yID.
  25. Dare I ask why published becomes unpublished? Theoretically, this can be achieved with an UPDATE trigger -- but I don't think you can update the same table/record yet.
×
×
  • 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.