You are here: Re: Date is not being pulled from MYSQL database, instead current date is displayed!!! « PHP Programming Language « IT news, forums, messages
Re: Date is not being pulled from MYSQL database, instead current date is displayed!!!

Posted by Geoff Berrow on 03/24/06 01:08

Message-ID: <1143154489.799918.244230@e56g2000cwe.googlegroups.com> from
ameshkin contained the following:

>Here is a reply in another forum after someone stated taht it was
>strange taht still did not work.
>
>The page is at http://www.mytuneslive.com/ameshkin69/
>
>OK, what I did is just output the raw $row_comment['timestamp']
>
>This gives u the value in the database in a unix timestamp. Below is
>the mysql query....and underneath that is the entire table in case
>something else is causing trouble.

Umm..that's not a UNIX timestamp. A UNIX timestamp is the number of
seconds since Jan 1st 1970. Yours starts with 2006, which should be a
huge clue..

You'll have to convert it to a UNIX timestamp or get the query to
format it.

To convert do something like
SELECT comments.owner, comments.UNIX_TIMESTAMP(timestamp) AS
unix_timestamp ,comments.comment,comments.author, comments.cmtpic,
comments.autoFROM comments ...

--
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/

 

Navigation:

[Reply to this 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

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