开发者

Random ids between limit IDs using RAND() php msql

开发者 https://www.devze.com 2023-01-12 09:03 出处:网络
anyone know abouthow to use Random wallpaperid between limit IDsusing RAND() php msql i use this but its RAND() whole database

anyone know about how to use Random wallpaperid between limit IDs using RAND() php msql

i use this but its RAND() whole database

$sql_wallpaper = "SELECT * FROM wallpaper WHERE RAND()>0.9 ORDER BY RAND() LIMIT 0,5";
$res_wallpaper = mysql_query($sql_wallpa开发者_C百科per);

reply please


Do you mean this?

$sql_wallpaper = "SELECT * FROM wallpaper WHERE id>Min AND id<Max ORDER BY RAND() LIMIT 1";
$res_wallpaper = mysql_query($sql_wallpaper);
0

精彩评论

暂无评论...
验证码 换一张
取 消