File size: 547B
<?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='".$id."'");
$i=mysql_num_rows($arr);
///////////////////////////////
$data=mysql_fetch_array($arr);
if($id==$data['id']);
$data['cin'] += 1;
$data['allin'] += 1;
@mysql_query("update `users` set cin='".$data['cin']."', allin='".$data['allin']."' where id='$id';");
header("Location: ./index.php?cid=".$id."");
?>