View file vote.php

File size: 296B
<?php
include "config.php";
$q = @mysql_query("select `counter` from `".$px.$utable."` where id='$id';");
$data = @mysql_fetch_array($q);
$data['counter'] += 1;
@mysql_query("update `".$px.$utable."` set counter='".$data['counter']."' where id='$id';");
header("Location: index.php");
?>