|
|
|
| Title : |
Counter that use a sequence in MySql, avoid problems with concurrent access in a
web server.
If you use simple text file to store counters you can have problems if two or
more WWW users connect to your web all at the same time. |
| Categories : |
MySQL, PHP |
 Marcello Di |
| Date : |
Mar 13th 2000 |
| Grade : |
2 of 5 (graded 3 times) |
| Viewed : |
10353 |
| File : |
counter.php
|
| Images : |
No Images for this code example. |
|
| Search : |
More code by Marcello Di |
|
| Action : |
Grade This Code Example
|
|
| Tools : |
My Examples List |
|
|
|
|
|
|
In MySql run this script:
CONNECT test;
CREATE TABLE seq_conn (
seq_id INT4 NOT NULL AUTO_INCREMENT,
PRIMARY KEY(seq_id) );
Then run counter.php3 at the beginning of the index.php3 page , and remember to find 0.gif ....
9.gif somewhere or ask to me I will send it .
|
|
| bookmarker - PHP, PHPLIB, MySQL WWW based bookmark manager Categories : MySQL, PHP, MySQL, Complete Programs, Databases | | | Online Automatic Class Generator for MySQL Tables Categories : PHP, PHP Classes, Classes and Objects, Databases, MySQL | | | OverEasy - PHP generated JavaScript to do mouseovers on
your pages. Modify one file and one function does it all
for you! Categories : PHP, Java Script, HTML and PHP, MySQL | | | a function that builds an HTML select list from any mysql table. Categories : PHP, MySQL, HTML and PHP | | | fforum fumanchi forum MySQL treestructure Categories : Complete Programs, PHP, MySQL | | | Anti SQL injection-PHP Categories : PHP, MySQL, Security | | | dynamic table columns Categories : PHP, HTML and PHP, Arrays, Databases, MySQL | | | complete, simple, working example of a login screen/system using php functions, cookies, and a mysql database for begginers. Categories : Authentication, Complete Programs, PHP, MySQL, Databases | | | Paginator - a class that can help you to split MySQL database query result sets to pages. Categories : MySQL, Databases, HTML, PHP | | | Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0 Categories : PHP, Sessions, Databases, MySQL | | | Simple conversion functions to change MySQL dates to arrays, arrays to MySQL dates.
Categories : PHP, Arrays, Date Time, Databases, MySQL | | | Required form fields that pull from MySQL database Categories : PHP, HTML and PHP, Databases, MySQL | | | Specify your connection settings and create a link to a MySQL database. Categories : PHP, PHP Classes, Databases, MySQL, Beginner Guides | | | Storing / Retrieving pictures from database This can be used for banner / ads exchange. very useful for people developing big portal with ads in the site........ Categories : PHP, MySQL, Databases, HTML and PHP | | | mediaCat-GTK v2.0.0 - an mp3/cd/dvd cataloging utility written in php-gtk which interfaces with mysql and ms access (or db supported by PHP's Unified ODBC Functions) Categories : PHP, MySQL, MS Access, Utilities, Databases | |
| |
| | | | | Marcello DI PIETRO wrote :276
Please download the counter.php3 is attached on top of the
page
| |
|
|