logos.php: import id and vote from $_POST

This commit is contained in:
Erik Faye-Lund 2013-05-14 02:10:39 +02:00
parent b6bbd54dfb
commit d3f176aa57

View File

@ -1,6 +1,8 @@
<?
require("include/top.php");
$id = $_POST['id'];
$vote = $_POST['vote'];
if (isset($_SESSION['SESSION']) && $id && $vote) {
$query = 'SELECT count(0) FROM logos_votes WHERE logo='.(int)$id.' AND user='.$_SESSION["SCENEID_ID"];
$result = mysql_query($query);