View file ref.php
<? require_once 'inc/config.php'; echo '<center>МОИ РЕФЕРАЛЫ</center>'; $get=abs(intval($_GET['id'])); $v=0; $b1=mysql_query("select * from users where `refer`='".$get."'"); while($b2=mysql_fetch_array($b1)){ $v++; echo '('.$v.')<a href="user.php?p=user&id='.$b2['id'].'">'.$b2['login'].'</a><br>'; } require_once 'inc/end.php'; ?>