A Calendar type thingy
| From: | David Johansen | Date: | Fri, 29 Mar 2002 20:44:08 +0000 |
| Subject: | A Calendar type thingy | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-90715@lists.php.net to get a copy of this message | ||
Ok, I'm still kind of new to this and I just have a question on how I should
go about implementing something. I need to make a calendar type thing with
different times in each day and store some values for each time in a
database. I was just wondering what would be the best way to do this. Here's
what my data type would look like in C:
struct time
{
char name[50];
int avail;
int max;
}
struct day
{
char date[15];
time time_values[6];
}
day myDates[14];
So I would have a structure for each day and that structure would hold the
date and 6 times. Each time would have it's name, available spots and
maximum spots. What would be the best way to set this up in PHP and store it
in a mySQL database. Thanks,
Dave