Re: [PHP] a quick date and session id question

2001-04-15 Thread Brian Clark
@ 10:56:48 PM on 4/15/2001, Brian Clark wrote: ... > function decipherDate($string, $format) > { Oops, you'll probably want to give $format a default value if one isn't passed. And maybe change the returns if you want to do something like: if(!decipherDate('blah')) ... >if(!$formatted = @

Re: [PHP] a quick date and session id question

2001-04-15 Thread Brian Clark
Hi Sandeep, @ 10:33:16 PM on 4/15/2001, Sandeep Hundal wrote: ... > NOw they will probably be given a form which allows them to choose, > and then gets inputted into the datase as a number : MMDD. But I > want to display the data as "Monday, 20 April 2001. How can I do > this? Yes, with str

RE: [PHP] a quick date and session id question

2001-04-15 Thread Maxim Maletsky
Hi, All you need is to insert the data into the database as MMDD and then pull it out reformatting it with mySQL functions: SELECT DATE_FORMAT(date, "%W, %e %M %Y") AS date FROM table ; this will return you the date in "Monday, 20 A