![]() |
Is there an easy way to do this?
I am using the following code to show random pictures. is there an easy way to generate more code. Say if i wanted it to go to 1000 or more.
Code:
$random_number = rand(1, 5); Basically i want to add everything between 1 and 1000 automatically: Code:
$random_number = rand(1, 1000); |
I think array_rand should do this.
http://www.php.net/array_rand |
I don't think that will help. I just need to generate that code from 1-1000 without having to do it manually in word pad. Any ideas on how to do that?
|
Sorry, i've misunderstood you.
You could use "for" ? PHP Code:
|
PHP Code:
|
Quote:
Thanks again |
All times are GMT. The time now is 09:15 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:
|