Jump to content

Saving date to database


arunpatal

Recommended Posts

Hi,

 

I have two date and title fields

<input type="text" name="event_name" placeholder="Starting Date">
<input type="text" name="from" placeholder="Starting Date">
<input type="text" name="till"  placeholder="Ending Date">

I have a table call events....

 

id - auto inc

title - varchar(45)

date - date

 

__________________________________________________________

 

now for example starting date is 2014-04-25 and ending date is 2014-05-09

 

I want to save all these date with their event name to events table....

 

example

 

id          date                    event

1      2014-04-25             event_name

2      2014-04-26             event_name

3      2014-04-27             event_name

4      2014-04-28             event_name

 

....................................

 

what would be the way to store????

Link to comment
https://forums.phpfreaks.com/topic/287563-saving-date-to-database/
Share on other sites

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.