Jump to content

Increment column


moisesbr

Recommended Posts

Is the error caused by the missing "$" before "result"?

<?php
$result = mysql_query("UPDATE controle set chave_nei= chave_nei + 1");
?>

If not, what is the error you are receiving?

 

 

Side note: the mysql_ functions have been depreciated. If you're not doing so already, you should start looking into the alternatives:

http://www.php.net/manual/en/mysqlinfo.api.choosing.php

Link to comment
https://forums.phpfreaks.com/topic/283166-increment-column/#findComment-1454927
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.