开发者

Random ids between limit IDs using RAND() php msql

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜