RE: adding integer to field in query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dillon, John <mailto:JDillon@cantor.co.uk>  wrote on Wednesday, August
13, 2003 10:24 AM:

> How do you add a number to a field within the query, ie
> without having to
> extract?  Eg
> 
> $query="UPDATE Choice SET visits=(visits+1) WHERE ID='$thisID'";
> 
> is the above "visits=(visits+1)" legal, cos it doesn't work
> at the moment?
> 

It's executing right?  Echo out your query statement and see what you're
asking for.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux