I have cretaed the data set above with a query and now I need to export ONLY a portion of it to a .csv file with PHP. The higlighted portions in the images are what needs to be exported to a .csv file. Basically, each time an account_manager_id changes I need the first five rows of data to be exported to the .csv file
FYI - As a workaround I could also import this right back into a table if those same portions of the query were the only portions imported. Obviously Im trying to isolate those portion of the data in anyway that I can!
I dont have a good grasp on how/where to start. If anyone can point me in the right direction with a suggestion I would really appreciate it.
Thanks in advance