![]() |
Chosin a row randomly from a mysql table
Well im making a hot or not (photo rating) hack for my board, its practily done but i dont know how to solve the randomizing thingy so that when people load hotornot.php then a random image is shown. From reading a tutorial i learned a little and used the code they supplied to write this query:
PHP Code:
|
Code:
SELECT * FROM photoalbum ORDER BY RAND() |
lol it was that easy, heh well thanx again for helping me out.
|
All times are GMT. The time now is 03:21 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|