日期:2014-05-17 浏览次数:20426 次
$sql = "SELECT * FROM `shops` WHERE `subdomain` != '' ORDER BY RAND() LIMIT 100";
$rows = $db->getData($sql);
foreach($rows as $row)
{
echo '<li><a href="http://'.$row['subdomain'].'.baidu.com/" title="'.$row['title'].'">'.$row['title'].'</a></li>';
}