i’m new to the php mysql usage. i’m selecting the results from database .. and i’m cycling/printing them out to the screen using while($stmt->fetch()): .. what i’d like to do is to cycle through the results again after the first cycle without calling the database (frombuffered results set).
i’m using php5, mysqli, stms on xampp server.
You can use arrays.
When you cycle through the result for the first time you can put the values in the array and later in the 2nd cycle you can access the elements from the array.
Something like: