Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
Old 2008-08-22, 09:08 AM   #1
Maverick
Aw, Dad, you've done a lot of great things, but you're a very old man, and old people are useless
 
Maverick's Avatar
 
Join Date: Sep 2004
Location: Ontario Canada
Posts: 20
Send a message via ICQ to Maverick
Random Selection through PHP

To start with, I am finally learning the right way to build sites using .php rather than the FP that us old lazy guys relied on. I am planning on completely redoing my sites from scratch.
Question is this. I am planning on setting up a php-file (moviegalleries.php) that will contain hundreds of movie galleries - in this case, asian content.
I am planning on calling that php file into different areas of the asian site but only want to show 10 randomly selected galleries from the moviegalleries.php to be inserted at any one time.

So, this would go into where I want the placement:
<?php include("moviegalleries.php"); ?>

To be perfectly honest, I have read through the PHP manual and W3C Schools and they seem to talk around what I want to do but do not seem to get there ... or perhaps it is simply an aging mind.

How do I actually set up the moviegalleries.php file so it randomly selects the galleries?

Thanks tons.
Mav
__________________
Adult Online Porn
Maverick is offline   Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:13 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc