SaRiD
Programmer
- Apr 19, 2003
- 45
Ok, simple question (hopefully simple answer)
Is there an QUICK easy way to retrieve the record number of a row in my database?
At the moment I can loop through all the records with a counter running and when I find the record I'm after I note down what the record number was.
This is fine, but if I'm to be searching through 1000's of records this is not so efficent any more.
If I could select the record I wanted out of the database and then run some sort of mysql function (like mysql_insert_id gets the last inserted id) to retrieve the record number that would be fantastic.
Cheers in advance!
Is there an QUICK easy way to retrieve the record number of a row in my database?
At the moment I can loop through all the records with a counter running and when I find the record I'm after I note down what the record number was.
This is fine, but if I'm to be searching through 1000's of records this is not so efficent any more.
If I could select the record I wanted out of the database and then run some sort of mysql function (like mysql_insert_id gets the last inserted id) to retrieve the record number that would be fantastic.
Cheers in advance!