Home >Backend Development >PHP Tutorial >mysql - How does thinkphp retrieve data from the database in reverse order, and then output it to the template in forward order?
I’m a little confused, please ask an expert to explain.
I’m a little confused, please ask an expert to explain.
Write $result = array_reverse($result);
in the php code and then pass $result to the template
By controlling the sql statement, you can fetch data in reverse order order by field desc,