Просмотр файла top/index.php

Размер файла: 556B
<?php
include "config2.php";
include "config3.php";

mysql_connect ("$DB_HOST", "$DB_USER", "$DB_PASS")
or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("$DB_NAME");
$q = @mysql_query("select * from `users` where id='$cid';");
$data = @mysql_fetch_array($q);
$id=$data['id'];
$data['cin'] += 1;
$data['allin'] += 1;


@mysql_query("update `users` set cin='".$data['cin']."', allin='".$data['allin']."' where id='$cid';");

header("Location: http://$domen/top.php?cid=".$data['id']."");

?>