View Single Post
Old 02-16-2008, 02:34 AM  
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
Code:
<?php

$ARRAY = array(
    'sitename1.com' => 'This is a description',
    'sitename2.com' => 'This is a description'
    );

shuffle($ARRAY);
$counter=0; 
foreach ( $ARRAY as $URL => $DESC ) {
    if($counter < 30) {
    print "<a href=\"$URL\">$URL</a> - $DESC\n";
    $counter++;
    }
}
?>
A bit half-assed. I would do this with a mysql db instead.
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote