File size: 573B
<?php
include "config2.php";
$linkk=mysql_connect($DB_HOST, $DB_USER, $DB_PASS);
mysql_select_db($DB_NAME);
$arr=mysql_query("select * from users where id='".$sid."'");
$i=mysql_num_rows($arr);
///////////////////////////////
$data=mysql_fetch_array($arr);
if($sid==$data['id']);
$link=$data['link'];
$out=$data['out'] += 1;
$allout=$data['allout'] += 1;
{
@mysql_query("update `users` set `out`='".$data['out']."', `allout`='".$data['allout']."' where id='".$sid."';");
}
header("Location: $link");
mysql_close($linkk);
?>