Parašė Giedrunskis· 2008 Bir. 26 12:06:03
#6
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
$result = dbquery("SELECT * FROM ".$db_prefix."reklama WHERE aktyvus='1' ORDER BY RAND() LIMIT 3");
$baneris = $data['banerio_id'];
if ($result != 0) {
while ($data = dbarray($result)) {
$uprl = !strstr($data['banerio_img'], "http://") ? "http://" : "";
echo "<center><a href='".INFUSIONS."reklama/baneris.php?baneris=".$data['banerio_id']."' target='_blank'><img src='".$uprl.$data['banerio_img']."' alt='".$data['banerio_pav']."' title='".$data['banerio_pav']."' border='0'></a></center><br>";
}
} else {}
?>