![]() |
Make an 'echo' random in php?
Quote:
I'm thinking it must be possible using something along the lines of this, maybe just to give an idea of what I'm looking for? Quote:
Quote:
TIA for any assistance. |
you'd have to save all the names as an array. I don't know if your data is available in that format, but if it is, all you need to do is $random_title = array_rand($your_array_of_names) and it will output a random result every time.
if your data isn't an array yet, you can create one by adding each name in your database like this step 1: create an empty array $array = array(); step 2: go through each name in your db and add it to the array foreach($row as $name) { $array[] = $name; } now your array is ready to be randomized. |
Quote:
Thats what I was afraid of, itll take forever to setup the individual arrays, looks like I need to recode using SQL Queries instead :1orglaugh Thanks! |
Quote:
|
All times are GMT -7. The time now is 07:09 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123