![]() |
help with the random code
PHP Code:
|
Only limit the rand to 5.
rand(1,5) |
ok, so cos it's for my site, it will display 5 of my requests at a time randomly not repeating any of em?
|
If you're lucky, it wont repeat.
But after properly reading what you want, it would be easier (and probably the only way) is to use the DB at the backend |
Tut tut ;):
PHP Code:
|
Quote:
|
count function counts the number of items in an array :)
|
Quote:
|
An arguement to a a function can be a function you know ;)
|
I once saw somewhere [I think on php.net] a way to prevent a rand() function from showing the same thing twice...Took a lot of code though.
|
All times are GMT. The time now is 05:51 AM. |
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:
|