Skip to content
Advertisement

PHP loop for TCPDF

please help this idiot. I know there are a lot of examples but none makes sense to me and cant get it to work. I need to create a loop (i think) to display all the records in the db. Currently only one record is displayed

Existing code

JavaScript

Advertisement

Answer

You’re getting one row. Aren’t you? Variables inside the loop are only valid inside the scope of the loop. What you should do is loop over the table rows whilst concatenating the string to pass to the pdf

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement