Database driven web counter with PHP/mySQL
| Published on 6/2/2009 by Dotnetindex More articles in PHP
|
This simpel script stores page hits on a database file. In every visit, script counts the hits and updates database. To drive this PHP script , you need PHP, mySQL. You may setup script easily, just copy and paste following code into a page.
<?php Do not forget to create database table with this SQL script. Run sql script within phpmyadmin:
CREATE TABLE IF NOT EXISTS `mycounter` (
|
no comments submitted
Latest Posts
- How to Create an Image in PHP
- How to Prevent Email Injection in Your PHP Form to Mail Scripts
- Writing Your First PHP Script: Feedback Form Script
- Creating a Simple PHP Cache Script
- How to write a simple scraper in PHP without Regex
- PHP cURL functions tutorial
- Submitting forms using PHP cURL
- Two way encryption
- How to Add Data in a MySQL table
- PHP Nested Loop Tutorial
- Image manipulation and watermarking in PHP with GD2
- Making A Cool Login System With PHP, MySQL & jQuery
- Build a customizable RSS feed aggregator in PHP
- Custom RSS 2.0 Content Feeds using OOP
- PHP Development: Getting Started
- How to Count all elements in an array
- Making A Cool Login System With PHP, MySQL & jQuery



