Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include('../includes/config.php');
- $id = $_GET['id'];
- $votes = $_GET['votes'];
- $query="update posts set votes='$votes' where id='$id'";
- $result = $mysqli->query($query) or die($mysqli->error.__LINE__);
- // $affected = $mysqli->affected_rows;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement