![]() |
|
#1
|
|||
|
|||
Order randomisation of content with PHPSorry to ask a simple question, but I'm looking to randomise a display of content, which are called up with basic PHP include files.
So if there are 5 images, I'm calling them up as: PHP Code:
How would I randomise with a script within the body itself? Many thanks for any replies. Last edited by admin : 18-Sep-2005 at 17:36.
Reason: Please insert your PHP code between [php] & [/php] tags
|
|
#2
|
||||
|
||||
|
Hello I, Brian,
You didn't explain yourself very well so I will simply throw out some suggestions. You can use mt_rand( int min, int max ); to get some random id very easily. Then there are the ARRAY functions themselves, out of which you may want to read up on: array_rand( array input [, int num_req] ). |
Recent GIDBlog
Last Week of IA Training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP script to show last referrer url and top referrer to your site | jrobbio | MySQL / PHP Forum | 6 | 22-May-2006 01:06 |
| RESELLER WEB HOSTING - $9.99/MONTH For 4GB HD & 30GB BW! CPanel, PHP, MySQL & MORE! | IncognitoNet | Web Hosting Advertisements & Offers | 0 | 30-Jan-2005 21:46 |
| RESELLER WEB HOSTING - $9.99/MONTH For 4GB HD & 30GB BW! CPanel, PHP, MySQL & MORE! | IncognitoNet | Web Hosting Advertisements & Offers | 0 | 11-Nov-2004 19:51 |
| Two virtual hosts, cgi script behaves differently on each | blimbo | Apache Web Server Forum | 0 | 04-Aug-2004 09:35 |
| php & txt files | dopee | MySQL / PHP Forum | 5 | 06-May-2004 03:05 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The