Created
April 26, 2017 14:35
-
-
Save pteacher/4dfd23e2d7a558e2d799bf030bd311ac to your computer and use it in GitHub Desktop.
ServerClicker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once '../dbconnect.php'; | |
//pg_query($db, "INSERT INTO klik (kliks) VALUES (0)"); | |
$result = pg_query($db, "UPDATE klik SET kliks = kliks + 1 WHERE id = 1;"); | |
$result = pg_query($db, "select * from klik"); | |
echo pg_fetch_all($result)[0]['kliks']; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment