I have the following problem and I do not know if there is a function in php to do this or in what way I can fix it.
I have a database in which I will search for records that match a search criteria, when I receive it I will have something like this:
id total pagado
1 $100 1
3 $400 1
7 $500 1
I want to delete those records, but I have to leave the consecutive IDs, and these in the search will be skipped, in what way can I do it with PHP, is there any function or function that they know?
Greetings!