Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. <?php
  2. include('../includes/config.php');
  3. $id = $_GET['id'];
  4. $votes = $_GET['votes'];
  5. $query="update posts set votes='$votes' where id='$id'";
  6. $result = $mysqli->query($query) or die($mysqli->error.__LINE__);
  7. // $affected = $mysqli->affected_rows;
  8. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement