replyI queried the database before and found that the IDs were out of order, so I wanted to sort them using a cursor or something. Do you know any way to do this?
replyI changed the database link type in the database.php file and changed mysql to mysqli but still reported an error that the class does not exist: \think\db\connector\Mysqli. After checking the reason, it seems that tp5.1 does not support it. Before tp5, just change it to mysqli.
Now they are all object-oriented-new mysqli or pdo
DB_TYPE is set to mysqli