View file waplend/banners.php
<?php echo "<div class='contur_t'><div style='text-align:center;'>Баннеры</div>"; $qwer = mysql_query("SELECT * FROM `banners` order by polozhenie"); while($mne = mysql_fetch_array($qwer)) {$cont="<img src='".$mne['namelink']."' alt='' />"; if ($mne['type']=="1") {$cont="".$mne['namelink']."";} echo "<div style='text-align:".$mne['align'].";'><a href='".$mne['link']."'>".$cont."</a></div>"; } echo "</div>"; ?>