Forum Moderators: coopster

Message Too Old, No Replies

Date Calendar

         

brodie_r

1:30 pm on Feb 15, 2006 (gmt 0)

10+ Year Member



At present i have reports that when added include the DATETIME stamp, which are placed in a column called date_booked. I have also setup search functions for when certain columns equal a certain variable show them etc. What i want to do is have a calender, and have it so i can select the date on the calender and it will search all the date_booked, and show any results. Anyone help me out

coopster

5:30 pm on Feb 15, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, brodie_r.

It may be easier to build in stages. I would build the calendar portion first to get a good feel for the PHP date and time functions [php.net].

IamStang

12:46 pm on Feb 17, 2006 (gmt 0)

10+ Year Member



I am fairly new to PHP (getting better) and one of the first scripts I created on my own was a calendar/date book.

Knowing what I know now, if I were to do it again, I would do it like Coopster said. Do the calendar first, then work on getting the "Appointments" part included into it.

I did both at the same time. Man! Did I get lost in a hurry. It took me twice as long to complete and my code looked like my 8 yr old wrote it. LOL.

Regards,
IamStang

brodie_r

5:43 am on Feb 18, 2006 (gmt 0)

10+ Year Member



You guys both missed my question ;). I dont want a callender to add apointments. I have a system where i add reports, and at the moment when searching you have to type the date the report was created. I want a calender, so i can select the date and it will search for it that way. Please read my initial post

dreamcatcher

7:17 am on Feb 18, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Check out the PHP scripts repository, they have a few calendar classes you may be able to manipulate into what you need:

[phpclasses.org...]

dc

coopster

3:09 pm on Feb 18, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



With all due respect, brodie_r, we did read your initial post and again now you have repeated ...


I want a calendar, so i can select the date and it will search for it that way. Please read my initial post

That is why the recommendation is to build the calendar first, you will get a feeling for date/time functions. You want a calendar, build the calendar ;-)

As dc has mentioned you can grab some open source and read through to get a feel for how a calendar can be built. The next step after building a calendar is to learn how to "connect" the dates for any given calendar displayed with any corresponding database entries you may have for those dates. The recommendation is merely to help you break the coding project into smaller chunks.

If we are still misunderstanding your request here, please offer more detail.

brodie_r

2:19 am on Feb 19, 2006 (gmt 0)

10+ Year Member



Thanks for your help coopster, i think i may have figured out how to do it. When complete ill share my experiences