jlange Posted August 1, 2006 Share Posted August 1, 2006 Here's the rundown: I'm making a checkout system for my school for signing out iBook carts and computer labs, etc.I'm trying to figure out how to implement the calendar into a MySQL table. I need to haveA) A daily calendar for each thing (eg, Cart A Cart B Cart C Lab A)B) Nine spots for information on the object, one for each period of the day.I've been racking my brain on how to do this, and I've come up blank. It just seems to me that the database structure doesn't go deep enough for the levels of information I'm trying to display.I'm using PHP and MySQL on Apache, generic installation on Mac OS X. Any help would be appreciated Quote Link to comment https://forums.phpfreaks.com/topic/16213-making-a-mysql-based-calendar-system/ Share on other sites More sharing options...
fenway Posted August 2, 2006 Share Posted August 2, 2006 Well, any calendering application needs to have time slots, and then a way to assign items to these blocks. I'm not sure what you mean by "deep" enough. Quote Link to comment https://forums.phpfreaks.com/topic/16213-making-a-mysql-based-calendar-system/#findComment-67820 Share on other sites More sharing options...
jlange Posted August 2, 2006 Author Share Posted August 2, 2006 I'm relatively new to MySQL and the whole database-style of thinking..but I need a database that would contain the calendar, then a table for each day, then a cell for each hour, and another thing inside of that for each object (iBook cart, LCD Projector, etc) that is changeable from php on whether it is already signed out or not. Quote Link to comment https://forums.phpfreaks.com/topic/16213-making-a-mysql-based-calendar-system/#findComment-67916 Share on other sites More sharing options...
fenway Posted August 2, 2006 Share Posted August 2, 2006 Try not to think of the DB design in terms of the output, but rather in terms of the smallest pieces of information that you need to store. That is, while you might have a cell for each hour, you won't have a record for each hour, because a) nothing may be scheduled and b) it may span 2.5 hours. Does that make sense? Quote Link to comment https://forums.phpfreaks.com/topic/16213-making-a-mysql-based-calendar-system/#findComment-67930 Share on other sites More sharing options...
jlange Posted August 2, 2006 Author Share Posted August 2, 2006 Actually, it only has to be 9 class periods out of the day, this is a school environment.I'm currently using a folder heirarchy using PHP includes and stuff. It works fine, but I would like to migrate to MySQL at one point or another.Thanks for all the input, fenway Quote Link to comment https://forums.phpfreaks.com/topic/16213-making-a-mysql-based-calendar-system/#findComment-68049 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.