时间:2021-07-01 10:21:17 帮助过:6人阅读
$db_host = 'localhost';
$db_user = 'root';
$db_password = 'root3306';
$db_database = 'chuyu';
$con = mysql_connect($db_host, $db_user, $db_password);
mysql_query("set names 'gb2312'");
if(!$con){die('数据库连接失败: ' . mysql_error());}
mysql_select_db($db_database);
global $site;
$site_data=mysql_query("select * from dh_member_control where id=1",$con);
$site=mysql_fetch_array($site_data);
$hot_vip_data=mysql_query("SELECT * FROM dh_member WHERE `mck`=1 AND `photo`<>'/images/nan.png' AND `photo`<>'/images/nv.png' ORDER BY `mpower` DESC,`cktime` DESC LIMIT 1,12",$con);
$hot_vip=mysql_fetch_array($hot_vip_data);
$i=1;
while ($hot_vip && $i<=12)
{
if ($i % 6 == 0){$last=" class=\"last\"";}
else{$last="";}
$i++;
?>
echo '';
$db_host = 'localhost';
$db_user = 'root';
$db_password = 'root3306';
$db_database = 'chuyu';
$con = mysql_connect($db_host, $db_user, $db_password);
mysql_query("set names 'gb2312'");
if(!$con){die('数据库连接失败: ' . mysql_error());}
mysql_select_db($db_database);
global $site;
$site_data=mysql_query("select * from dh_member_control where id=1",$con);
$site=mysql_fetch_array($site_data);
$hot_vip_data=mysql_query("SELECT * FROM dh_member WHERE `mck`=1 AND `photo`<>'/images/nan.png' AND `photo`<>'/images/nv.png' ORDER BY `mpower` DESC,`cktime` DESC LIMIT 1,12",$con);
#$hot_vip=mysql_fetch_array($hot_vip_data);
$i=1;
while ($hot_vip=mysql_fetch_array($hot_vip_data) && $i<=12)
{
if ($i % 6 == 0){$last=" class=\"last\"";}
else{$last="";}
$i++;
?>