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.

get_votes.php 259B

12345678910111213
  1. <?php
  2. require_once('config.php');
  3. $id = 0;
  4. $votes = 0;
  5. if(isset($_POST))
  6. {
  7. $id = rawurldecode($_POST['id']);
  8. $results = $db->select('votes', 'id=?', array($id), 'sum(points) totalPoints');
  9. $votes = $results['totalPoints'];
  10. }
  11. echo $votes;
  12. ?>