![]() |
Friendlier alternative to rand()
Hey all, wondering if you could offer some advice to someone with very little experience!
I am displaying some pictures from different albums with the following: PHP Code:
I achieved this by changing PHP Code:
PHP Code:
Thanks! |
You may want to read this article: ~jk ORDER BY RAND()
It gets rather complex, but if you look all the way at the bottom at the performance you win, it may be worthwhile. |
Thanks Geert, that has thrown me in at the deep end a little - but i'll have a close re-read and try and get to grips with it.
Anyone else feel free to share your input too. |
| All times are GMT. The time now is 03:44 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0