I have this id number in one column of my table,
0907003 0907004 0907005 1008005 1008006 1008007 1009001 1009002 1009003
When I add the new value 1009 , it will add the last three numbers 004 , because the last number starts from 1009 (10-09) - 003 .
Or, if I add a new value 1008 , it will add the last three numbers 008
because the last number starts with 1008 (10-08) 007 .
Or, if I add a new value 0907 , it will add the last three numbers 006
because the last number starts with 0907 (09-07) 007 .
How to do it?
Thank you very much in advance!
$front_id = $this->input->post('gameid'); //09 $middle_id = $this->input->post('netid'); //07 //$last_id will be generate automatically by sql $forID = $front_id.$middle_id; $sql = "INSERT INTO table ('colum') VALUES (".$forID.")"
source share