| Subject: | Re: Dates in PHP |
|---|---|
| From: | "whatalotofrubbish" <webforumsuser@xxxxxxxxxxxxxx> |
| Date: | Wed, 30 Jul 2008 15:56:02 +0000 (UTC) |
| Newsgroups: | macromedia.dreamweaver.appdev |
This worked fine - once I had realised that it created another column with the same name. Changing the code to read SELECT thisCol, thatCol, anotherCol, DATE_FORMAT(photodate, '%e-%c-%Y') AS newphotodate FROM myTable All that needed doing after that was to drop the original photodate column and rename newphotodate to photodate, and create a new view. When I write the new input routines, I must remember to format the date before it gets stored. Rubbish in - rubbish out. This is part of the job of converting an existing site that uses asp and excell to php and mysql. Both of which I have not used before. The learning curve is steep! Thanks a lot. Howard |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: MySQL Error# : 2002 in Dreamweaver CS3, chunkeung |
|---|---|
| Next by Date: | Training from the source: Dreamweaver CS3, Ngyuen |
| Previous by Thread: | Re: Dates in PHP, David Powers |
| Next by Thread: | Bobb Flynn, citaiz |
| Indexes: | [Date] [Thread] [Top] [All Lists] |