php - How to get detail of the data from database? -
Actually I was confused to give a title for this question. I have a situation like this when we receive the data from the table select from border like select the table 0,5 , then we get 0 to 5 Receive data and when we use range 5,10 we get 5 to 10 records ... Is it possible to use specific indexes of records using php?
Thanks ..............
You are using LIMIT incorrectly starting LIMIT, do the length is 5, 5 and you will get 5 records starting from 5 (5-9).
Cheers, Eric
Edit: Please see it on this, well. This is definitely useful!
Edit another: I have been editing this question since the reply, so I will answer again. It seems that you want to get the indicator of the line you are returning, so here's an SQL statement to get:
set @mystart = 5; Set @myLimit = 10; Set @i = @mystart - 1; Note: I have taken it from this solution.
Comments
Post a Comment