这是我的密码
$query=mysqli_query($dbcon,"select count(user_name) from `viewlist` where user_name='$_name'");
我想做的是,它只显示带有用户名的列 $_name 但在表上按id降序排列(这是自动递增的)。我试过按身份证订购 DESC 但没用。
$_name
DESC
1qczuiv01#
也许 吧。。
$query=mysqli_query($dbcon,"select tb.* from (select count(user_name) as total from `viewlist` group by user_name) as tb order by tb.total desc");
1条答案
按热度按时间1qczuiv01#
也许 吧。。