Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SQLに関しては、ゼロに近いことを知っています。
私が持っているテーマのコードを調べていて、画像を順番に引っ張っています
$get_imgs = mysql_query("SELECT file FROM uploaded_images ORDER BY id DESC LIMIT 0, $results");
順序をランダムに変更するにはどうすればよいですか?
ORDER を RANDOM に変更しますか?
$get_imgs = mysql_query("SELECT file FROM uploaded_images ORDER BY RAND() LIMIT 0, $results");