View Single Post
Old 01-26-2022, 07:31 PM  
Publisher Bucks
Confirmed User
 
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,141
Make an 'echo' random in php?

Quote:
$title = $row['Name'];
I'm using the above echo statement to insert data into a page however, it dawned on me that it could be better to pull from a larger selection of data from within that same defined column, is this possible to achieve using a simple echo statement like the one above, just with a little longer statement, that doesnt involve adding SQL queries?

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:
$title = $row['Name'] RAND();
Quote:
<?php echo $title; random ?>
Is this possible?

TIA for any assistance.
__________________
SOMETHING EXTREME IS COMING SOON!
Publisher Bucks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote