View file txtban/ban.php
<?php mysql_connect($bd_host,$bd_name,$bd_pass) ; mysql_select_db($bd_bd) ; $result=mysql_query("select * from `index` where `id`=".$id); $status=mysql_result($result,0,"status"); If ($status=="1"){ $ban="1"; //echo "<p>Bы зaбaнeны<a href=\"index.php\">Bxoд</a></p></card></wml>"; //exit; } ?>