Skip to main content
Topic: move the record point (Read 1492 times) previous topic - next topic

move the record point

I am writing extra code and need to know how can I move the record pointer to the next record . And how retrieves the value of the specified field from the current connection's recordset.


Re: move the record point

Reply #2
I have a recordset based on a query. I need to know if this recordset has records and move across the records making some operations with the data of each record,  until the end of file

Re: move the record point

Reply #3
@ccortes‍ you need to use an if statement to check if the recordset has a record and a for loop to go through the data and perform your operation.
Note: To do this, you need a knowledge of PHP.

Re: move the record point

Reply #4
With other tool, I used  If(db$->next_record()).  Whit phprad says Call to undefined method PDODb::next_record()


 

Re: move the record point

Reply #6
Is there a similar function?