Parašė jokaz· 2008 Bal. 20 12:04:45
#34
SoNG parašė:
Prašom:
openside("Vipai");
$result = dbquery("
SELECT * FROM ".$db_prefix."users WHERE user_groups = '.1'
");
$data = dbrows($result);
while ($data = dbarray($result)) {
if ($data['user_avatar'] != "" && file_exists(IMAGES."avatars/".$data['user_avatar'])) {
$size = @getimagesize(IMAGES."avatars/".$data['user_avatar']);
$height = 50;
$width = 50;
$avatar = IMAGES."avatars/".$data['user_avatar'];
} else {
$height = 50;
$width = 50;
$avatar = BASEDIR."images/noav.png";
}
echo "<img src='$avatar' width='$width' height='$height'> <a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='u'><b>".$data['user_name']."</b></a><br>";
}
closeside();
myliu tave! :D Mldc
Redagavo bad_user· 2008 Bal. 20 12:04:27