Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?PHP
- /*
- * Simple PHP MySQL Counter
- *
- * Written by Goat
- *
- * Include this file at the top of your application
- *
- */
- $server = '';
- $username = '';
- $password = '';
- $tablename = '';
- $connection = mysql_connect("$server","$username","$password");
- if (!$connection)
- {
- die('Could not connect: ' . mysql_error());
- }
- UPDATE $tablename SET count = count+1 WHERE id = $id;
- mysql_close($connection);
Add Comment
Please, Sign In to add comment