- ORDER BY RAND()
$sql = ‘select id,name,type,songurl,imgurl from tf_chall_title where `chall_id` = ‘ . $id . ‘ and `status` = 1 and `is_del` = 0 ORDER BY RAND() limit 0,‘ . $flag[‘title_num‘];
$title_flag = $chall_title->query($sql);
2023-12-18 12:13:28
$sql = ‘select id,name,type,songurl,imgurl from tf_chall_title where `chall_id` = ‘ . $id . ‘ and `status` = 1 and `is_del` = 0 ORDER BY RAND() limit 0,‘ . $flag[‘title_num‘];
$title_flag = $chall_title->query($sql);