你好,有点混乱,我把它放到mysql查询中,因为我没有看到它可能是什么。基本上我在页面顶部回复了我网站上的7位用户。并且在除IE以外的所有浏览器中仅显示7个用户。即时通讯展示我的用户在一个边框和框阴影的div,我把这个div链接到他们的个人资料,现在在ie我得到一个七个用户列表出现,但每个结果(每个用户)链接到用户配置文件但没有图像的重复结果?互联网资源管理器呼应出重复的mysql结果?
我不知道这个重复的结果是从哪里来的,为什么它只能在IE中发生(所有版本)
继承人我的代码可以有人请解释什么,我可以做的感谢。
图像被显示,像这样在即:
NI =没有图像仅链接
box1 | box 1 (ni) | box 2 | box 2 (ni) | box 3 | box3 (ni) etc
继承人我功能
function get_platinum_users() {
global $connection;
$query = "SELECT *
FROM ptb_users, ptb_profiles
WHERE ptb_users.account_type = \"User\"
AND ptb_users.account_status = \"Active\"
AND ptb_profiles.user_id = ptb_users.id
AND ptb_users.subscription = \"Platinum\"
LIMIT 0 , 7";
$platinum_set = mysql_query($query, $connection);
confirm_query($platinum_set);
return $platinum_set;
}
和我的PHP代码:
<?
$platinum_set = get_platinum_users();
$platinum_count = mysql_num_rows($platinum_set);
while ($platinum = mysql_fetch_array($platinum_set)) {
?>
<? echo"<div class=\"image_case\"><a href=\"profile.php?id={$platinum['id']}\"><img width=80px height= 80px src=\"data/photos/{$platinum['id']}/_default.jpg\"></div>";
}
// if there were less than 60 users we need some default profiles to fill the spaces
if($platinum_count < 7){
// how many default spaces do we need?
$default_profiles_needed = 7 - $platinum_count;
for($i = 1; $i <= $default_profiles_needed; $i++){
echo "<div class=\"image_case\">
<a href=\"default.php\">
<img width=80px height= 80px src=\"data/photos/0/no_add.jpg\"/>
</div>";
}
}
?>
哦确定谢谢。在另一个笔记我讨厌ie。 – 2013-02-15 01:20:39
我们都这么做。大家都这样做。 – 2013-02-15 01:21:41