$res = mysql_query("select * from topliste$selmod order by ind desc");
while($row = mysql_fetch_array($res)){
$id = $row["id"];
$time = $row["time"];
$text = $row["text"];
$bannerurl = $row["bannerurl"];
$titel = $row["titel"];
$ud = $row["ud"];
$ind = $row["ind"];
$size = getimagesize("$bannerurl");
$width = $size["0"];
$height = $size["1"];
$banner = "";
$bannercnt++;
if($bannercnt<10)
{
if($bannerurl!="" and $bannerurl!="
http://" and $width=="88" and $height=="31"){
$banner = "<td width='88'><a href='
http://humorfreak.dk/ud.php?id=$id' target='_blank'><img src='$bannerurl' alt='$titel' border='0' hspace='0' align='left'></a></td>";
}
else{
$banner = "<td width='88'><a href='
http://humorfreak.dk/ud.php?id=$id' target='_blank'><img src='
http://humorfreak.dk/graphics/intetbillede.jpg' alt='$titel' border='0' hspace='0' align='left'></a></td>";
}
}
else
{
$banner = "";
}
}