View file top/out.php
<?php @mysql_connect('localhost', 'zaharec_znak', 'enter'); @mysql_select_db('zaharec_znak'); $q = @mysql_query("select * from `top` where id='$id';"); $data = @mysql_fetch_array($q); $link=$data['link']; $data['out'] += 1; $data['allout'] += 1; @mysql_query("update `top` set out='".$data['out']."', allout='".$data['allout']."' where id='$id';"); header("Location: http://".$data['link'].""); ?>