emvy03 Posted August 26, 2011 Share Posted August 26, 2011 Hi, I'm not too sure how to word this, but what I want to is to have a timetable for the 7 days of the week and 24 hours of the day, which gives 100-200 possible combinations. A user will select a checkbox and click submit which will then upload to a mysql database with the respective information. My question is, is there a way that the check box will dynamically select the day and time based on the row and column in it, as opposed to having 168 different names and values for each checkbox? I hope I have made my point succinctly but please post back if any more info is needed. Ta. Link to comment https://forums.phpfreaks.com/topic/245777-php-tablegrid/ Share on other sites More sharing options...
WebStyles Posted August 26, 2011 Share Posted August 26, 2011 My question is, is there a way that the check box will dynamically select the day and time based on the row and column in it, as opposed to having 168 different names and values for each checkbox? yes. there's always a way! Link to comment https://forums.phpfreaks.com/topic/245777-php-tablegrid/#findComment-1262460 Share on other sites More sharing options...
litebearer Posted August 27, 2011 Share Posted August 27, 2011 Consider using an array Link to comment https://forums.phpfreaks.com/topic/245777-php-tablegrid/#findComment-1262475 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.