Date(Fabruary-14-2003)!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
heerajee
Forum Newbie
Posts: 18
Joined: Sat Feb 25, 2006 12:33 am

Date(Fabruary-14-2003)!

Post by heerajee »

Hi,
I have got tired while finding out the way to input the date into the database inthe form of "Fabruary-14-2003".
while using three lists to select date(list for year,list for month,list for days), then concatinate them in one variable. While inserting into the database i got error (Unknown column 'February' in 'filed list').
Is there any solution to store the date in this format like "Fabruary-14-2003", if you know, please inform me.


After concatinating the three lists in one variable, the variable shows the value like this(Fabruary-14-2003) but is not stored into the database.



Thanks.
Asif Arif
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

Here is my solution...

Don't use preformatted dates...use a timstamp and convert it to the date format you want at run time.
heerajee
Forum Newbie
Posts: 18
Joined: Sat Feb 25, 2006 12:33 am

Date problem.

Post by heerajee »

Assalamo Aliekum,

I am very thankfurl for your consideration, i want to know tha how can i enter this date(Fabruary-14-2003) with the help timestamp into the database.

Thanks in advance.
Asif Arif
Post Reply