You are here: Re: increase MySQL field value by 1? (quickly/easily) « PHP SQL « IT news, forums, messages
Re: increase MySQL field value by 1? (quickly/easily)

Posted by John McClumpha on 11/22/05 12:31

On Mon, 21 Nov 2005 14:36:08 +0100, Stefan Rybacki
<stefan.rybacki@gmx.net> wrote:

>rob@centralpoint.nl wrote:
>> Sure, increase it in the update query, example:
>> UPDATE hit SET counter+1 WHERE site='www.google.com'
>> (assuming that counter field is integer)
>
>Well, should be:
> UPDATE hit SET counter=counter+1 WHERE site='www.google.com'

Thanks stefan... I actually made that adjustment to Rob's code without
even thinking ;)

--
John McClumpha
Darkness Reigns - http://www.incitegraphics.com.au/darkness/

 

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

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