Reply to Re: Date is not being pulled from MYSQL database, instead current date is displayed!!!

Your name:

Reply:


Posted by Geoff Berrow on 03/22/06 20:39

Message-ID: <1143048573.588082.182880@i39g2000cwa.googlegroups.com> from
ameshkin contained the following:

>current time. The values in the database are UNIX timestamp, and the
>DATE() function is used to convert from UNIX to readable date. Can
>someone please help me?
>
>
> <td width="55%" align="left" valign="top"><?php
>$row_comment['timestamp'] = date("n d Y g:i A");

RTFM

echo date("n d Y g:i A",$row_comment['timestamp'] );
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация