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);
精彩评论