hello there.

can someone know the code for this..
here is the output..

record 9 of 10

displaying the total number of records in the database and the current record to which the cursor is focus on..

Recommended Answers

All 2 Replies

For the number of record you can run a query

Select * from <TABLENAME>; which selects the whole thing and passes it back, or you can just use the SQL Count which will return the number of rows.

i have done the last part of counting the record but what i want is if i change the focus to other record the label would display the same for example if i go to record 8 the the label would display Record 8 of 10 then if i clicked on the 5th record it will display Record 5 of 10

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.