Jump to content

Availability Calendar


aftabn10

Recommended Posts

Unfortunately, I do not know of any tutorials.

 

But here is a suggestion:

 

Use a database to hold times for a specific day.

 

Then as you build your calendar, you can dynamically receive those days by database requests.

 

If you understand how to use database requests effectively, you can make this happen :)

Well hard part is design of the database, as u will need some foresight when building and testing the code.
but you shud know how ya want things.

u should look into MySQL DATETIME formats as will as PHP's time functions.
Building the calander is just a question of wut yer needs are.

So ask yerself wut you need, and that will help design the db for u.
And Remember, you don't need to setup every possible date time combo, you can have flags for the available dates.

[sql]
id as INTEGER PRIMARY KEY NOT NULL,
starttime as DATETIME NOT NULL,
endtime as DATETIME NOT NULL,
comment as text
available as tinyint

 

as a starter sql for an starter

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.