![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 | |||
Confirmed User
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,135
|
![]() 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.
__________________
SOMETHING EXTREME IS COMING SOON! |
|||
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2005
Location: Canada
Posts: 10,331
|
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.
__________________
skype: lordofthecameltoe |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Confirmed User
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,135
|
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 ![]() Thanks!
__________________
SOMETHING EXTREME IS COMING SOON! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2005
Location: Canada
Posts: 10,331
|
It depends. Either way, with SQL queries or with arrays, it should only be a few lines of code at most to get the data you want.
__________________
skype: lordofthecameltoe |
![]() |
![]() ![]() ![]() ![]() ![]() |