I am printing a table filled with the data retrieved from database in PDF using FPDF library. I want this code to run until the end and print the data of students in groups in the table.It is retrieving and printing the data perfectly for the first group but for the other groups it prints only the table and doesn't populate it with the data. here is my code.I am printing a table filled with the data retr