Teknik is a suite of services with attractive and functional interfaces. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
259 B

<?php
require_once('config.php');
$id = 0;
$votes = 0;
if(isset($_POST))
{
$id = rawurldecode($_POST['id']);
$results = $db->select('votes', 'id=?', array($id), 'sum(points) totalPoints');
$votes = $results['totalPoints'];
}
echo $votes;
?>