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 :)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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