Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $username="acc";
- $password="pw";
- $database="arr9gan7";
- $name= $_GET["name"];
- $votes= $_GET["votes"];
- $con = mysql_connect("localhost", $username, $password);
- if (!$con)
- {
- die('Could not connect: ' . mysql_error());
- }
- mysql_select_db($database, $con);
- mysql_query("UPDATE statistik SET votes = $votes
- WHERE name = $name");
- echo("hehe");
- mysql_close($con);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement