PHP extracts a lot of data from the database, cyclically outputs a lot of data from the database in the html page table, and cyclically outputs the data in the html page table. Previously, thinkphp framework was used. Label. Currently, the thinkphp framework cannot be used. Native PHP is used. How does the data retrieved from the background be cyclically output to the html table?
For example, if $ result is a multi-dimensional array, it contains three fields: id, name, and age. How can they output the corresponding data to an html table?
Reply to discussion (solution)
Since it is mixed encoding, this should be enough.
Or add html tag processing in php ~~
Since it is mixed encoding, this should be enough.
Or add html tag processing in php ~~
Since it is mixed encoding, this should be enough.
Or add html tag processing in php ~~
I know this method is a little troublesome. Is there a simpler way? Like thinkphp's Tag
Since it is mixed encoding, this should be enough.
Or add html tag processing in php ~~
Since it is mixed encoding, this should be enough.
Or add html tag processing in php ~~
I know this method is a little troublesome. Is there a simpler way? Like thinkphp's Tag
Native php does not provide similar labels, which are provided by the thinkphp framework rather than provided by php. tags similar to smarty are a media instead of provided by php. therefore, you can use the smarty template, which provides similar labels
Isn't it similar, In the final analysis, the label is also a foreach traversal.