Jump to content

Recommended Posts

I am building an on line calendar application and since is the first timei am building such a project, i need some assistance. I assume it must be based on a table, with days corresponding in table cells(?) and all the php code will go there. Am i correct?

Link to post
Share on other sites

You don't need a database to make the calendar itself, you only need it to store events such as birthdays. Store the timestamps in an integer field. To display all the events of one month, just select timstamps between the unix timstamp of the beginning of the month and timestamp of the end of the month. Use mktime() to generate the timestamps.SELECT ... WHERE timestamp BETWEEN $time1 AND $time2

Link to post
Share on other sites

Ingolme, I am not interested yet about the stage where i will have to insert the data in the database. Now i am in the point, still, of the html markup. That is why i asked about what markup to choose, if the table element is the correct one for such an occasion.

Link to post
Share on other sites

You can use a table element, however it is not necessary to manually code every single day as a table data element - you can automatically generate that using PHP.

Link to post
Share on other sites

I thought so too. Do you know where i can find a sample to code to study? Just to go faster, i am not very experienced to php. I am reading a book about php this period, but building a calendar is not contained in its sample projects.

Link to post
Share on other sites

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.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...