[Solved] Auto Insert into MySql Data Base
This is quite simple: 1st what you want to do is to query the database for the previous registration no /ID. something like this: $query = mysqli_query($connect,’SELECT regCode From data ORDER BY regCode DESC LIMIT 1′); then you check if there is any result like this: $results = count(mysqli_num_rows($query)); if it $results returns 0 (it … Read more