> I was wondering if there is a php / mysql function call that will
> increment an integer column in a database.
> ie. the equivalent to
>     $foo++;
>

Hi John
Well you can specify the column as auto_increment to let MySQL handle the
incrementation else I suppose - mysql_query('update mytable set
my_int_column = my_int_column + 1 where blah blah ...');
HTH
Rich

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

Reply via email to