I want to increment the variable number when ever there is a insertion to the database for the first insertion it should be 001 the next person or insertion should be 002.
Code:
<?php
$user = ($_POST['person']);
$number = "001"; //what to increament these
mysql_query("INSERT INTO users (person, user_num) VALUES ('$user','$number')") or die(mysql_error());
?>
Comment