Hi,
I have a WHILE statement that runs through my database query and outputs each record to the screen. All the records display on the same page.
I would like to somehow create a new page at the start of each loop using the $title variable from my query, run through the loop and write all that data to the page, then close that page and create a new one and repeat.
I have my while loop written but im unsure how to go about putting the contents of each loop into their own page.
Any help appreciated
I have a WHILE statement that runs through my database query and outputs each record to the screen. All the records display on the same page.
I would like to somehow create a new page at the start of each loop using the $title variable from my query, run through the loop and write all that data to the page, then close that page and create a new one and repeat.
I have my while loop written but im unsure how to go about putting the contents of each loop into their own page.
Any help appreciated