View file banners.php
<?php $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>"; ?>