PHP code for displaying non sequential ids
Posted: Sun Jul 26, 2009 5:20 am
Dear All,
I have a table in a database which contains the following fields :
1- id
2- student_name
3- subject
4- marks
In this table I have 4 records and id field is auto incremented, the id of my records start from 1 to 5 and id no. 3 is deleted so using php i would like to display that id 3 is missing, so how can i do that?
It will be great help if someone can help me, thank you very much appreciate it.
I have a table in a database which contains the following fields :
1- id
2- student_name
3- subject
4- marks
In this table I have 4 records and id field is auto incremented, the id of my records start from 1 to 5 and id no. 3 is deleted so using php i would like to display that id 3 is missing, so how can i do that?
It will be great help if someone can help me, thank you very much appreciate it.