hi every one i need ur help i want insert time when some one choose a movie and then select time and then booking the movie.... so how can i insert time to choose the movie time will be see it?
thanx alot for helping

Recommended Answers

All 3 Replies

You can simply use the date function.

An example would be date("d-m-y H:i:s"); which at the moment (GMT) it would produce: 26-03-13 12:52:08

i mean when someone select a movie they want choose time and then he/she will book a movie how can i do that?

Either a dropdown or a text field would do that, if you only rent a certain movie between certain times then a dropdown would probably be best to save on validation but otherwise a text field which you can then use the strtotime() function on to change it into something PHP can understand.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.