Using PHPExcel to make automatic generated excel files
问题 I want to have my excel file filled with some data which I get from my database, for example the name and age of someone. Say there are 10 people in my database. I want those 10 people in my Excel file. So basically, you would get: NAME AGE Person1 20 years Person2 25 years And so on. I know how to set the NAME and AGE stuff, but how would I go about looping the data and writing it inside the excel file? I couldn't find anything about it in PHPExcel's documentation. This is my MySQL: $query =