Jump to content

Saving date to database


Go to solution Solved by cyberRobot,

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????

Edited by arunpatal
Link to comment
https://forums.phpfreaks.com/topic/287563-saving-date-to-database/
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.