尝试选择所有列但避免超过 1 个相同的用户 ID。
$result = mysql_query("select *, DISTINCT userid from ringtones where deletedbyuser='0' and (lang='$lang' or lang='en') order by id desc limit 10");
请帮忙。
表结构:
id int(10)
userid int(10)
artist varchar(100)
title varchar(100)
lang varchar(2)
public int(1)
status int(1)
deletedbyuser int(1)