You are here: Re: Problem with NOW() with PHP and MySQL « All PHP « IT news, forums, messages
Re: Problem with NOW() with PHP and MySQL

Posted by ZeldorBlat on 03/29/07 15:57

On Mar 28, 1:03 pm, "Steve" <no....@example.com> wrote:
> btw, i used $stamp for both fields being set as using NOW() (even if you got
> your query to work) would set them to two different values even though the
> transaction happened at the same time.

Are you sure about that? From <http://dev.mysql.com/doc/refman/4.1/en/
date-and-time-functions.html>:

<snip>
Functions that return the current date or time each are evaluated only
once per query at the start of query execution. This means that
multiple references to a function such as NOW() within a single query
always produce the same result.
</snip>

 

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

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