This is a discussion on "sorry, need more help with time" within the PHP Forum section. This forum, and the thread "sorry, need more help with time are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
sorry, need more help with time
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
sorry, need more help with time
i was kindly helped with a problem with my date this morning, but i have been trying to figure out this
this is the date format i want, Quote:
Quote:
its fine at form its fine at database i just need to change the format once it is called from the database and printed on the page form.php
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Last edited by saltedm8; Oct 6th, 2007 at 16:24. |
|
|
|
|||
|
Re: sorry, need more help with time
Have you selected the date format for example:
SELECT *, DATE_FORMAT(date,'%D %M %Y') as fdate FROM form Using the formated date http://www.plus2net.com/php_tutorial...ate_format.php |
|
||||
|
Re: sorry, need more help with time
which one would i need to put it into and where, i have tryed doing it but failed
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
|
|
||||
|
Re: sorry, need more help with time
This is what I use
Last edited by AdRock; Oct 6th, 2007 at 20:17. |
|
||||
|
Re: sorry, need more help with time
i must be putting it in the wrong place or pages, i just cant figure out where this needs to be
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
|
|
|||
|
Re: sorry, need more help with time
Quote:
Take it away AdRock I'll leave it in your hands |
|
||||
|
Re: sorry, need more help with time
Quote:
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Last edited by saltedm8; Oct 6th, 2007 at 20:35. |
|
||||
|
Re: sorry, need more help with time
In my example have you changed the eventdate to the correct date field in your database?
|
|
|||
|
Re: sorry, need more help with time
On Line 19 in main.php
replace $sql = "SELECT * FROM form With $sql = "SELECT *, DATE_FORMAT(date,'%D %M %Y') as fdate FROM form And line 24 with print $row->fdate ; Well thats my 2cent anyway |
|
||||
|
Re: sorry, need more help with time
This is my query
and this is how i display the result
|
|
||||
|
Re: sorry, need more help with time
Change this line
Cheers
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
||||
|
Re: sorry, need more help with time
thank you all for your help, but once again Rakuli cracked it, thanks mate - appresiate everyones help
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| My first time | jabo | Introduce Yourself | 3 | Feb 26th, 2008 17:33 |
| It's about time... | prizm | Introduce Yourself | 9 | Nov 1st, 2007 12:46 |
| Ok you get this all the time... | Docherty | Web Page Design | 6 | Nov 19th, 2005 14:55 |
| Adjusting time from server time to local time | Tim356 | Classic ASP | 10 | Jun 21st, 2004 14:57 |
| What's the time? | Rob | JavaScript Forum | 2 | Sep 25th, 2003 18:01 |