CREATE TABLE IF NOT EXISTS `links` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`url` varchar(86) NOT NULL,
`name` varchar(86) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=6;
$a = mysql_query("SELECT FROM `rek_link` ORDER BY RAND() LIMIT 3");
while($l=mysql_fetch_array($a)){
echo '<a href="http://'.$l[url].'">'.$l[name].'</a>';
}