Jump to content

basic calendar needed .........


rnb_cassanova

Recommended Posts

this would be kind of complicated for a php newbie. my take on it would be:

 

make a mysql table called "Bookings", with fields: "id","timestamp","name","description"

 

then make a script that would dynamically create a calendar table use time() and date() functions.

 

for each table "cell" (in html), that gets looped it would have a timestamp-start and timestamp-end, i would check in mysql if any dates "WHERE `timestamp`>'$timestamp_start' AND `timestamp`<'$timestamp_end'" this would grab any dates between the two dates, and you can format the table cell accordingly with if statements etc and even add a popup-description telling you who booked it and why.

 

 

good luck hope this helps,

Link to comment
https://forums.phpfreaks.com/topic/95061-basic-calendar-needed/#findComment-486976
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.