View Single Post
Old 10-24-2008, 08:49 AM   #6 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

Yea Salathe is correct, there wont be any duplicates unless you introduce them into the array. Therefor this is probably the easiest way of doing it:
PHP Code:
<?php
    $links 
= array(array('url'=>'#''label'=>'Proxy #1'),
                   array(
'url'=>'#''label'=>'Proxy #2'),
                   array(
'url'=>'#''label'=>'Proxy #3'),
                   array(
'url'=>'#''label'=>'Proxy #4'),
                   array(
'url'=>'#''label'=>'Proxy #5'),
                   array(
'url'=>'#''label'=>'Proxy #6'),
                   array(
'url'=>'#''label'=>'Proxy #7'),
                   array(
'url'=>'#''label'=>'Proxy #8'),
                   array(
'url'=>'#''label'=>'Proxy #9'),
                   array(
'url'=>'#''label'=>'Proxy #10'));

    
shuffle($links);
    
$temp array_slice($links05);

    foreach (
$temp as $link) {
        
printf("<a href=\"%s\" class=\"menu_child_links\">%s</a>"$link['url'], $link['label']);
    }
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote