The page counter instance code of the phpmysql database. This program is a simple instance of phpmysql database page counter instance code, so that you can query your web page access times. This program is a simple instance of this program is a simple instance of php mysql database page counter instance code, so that you can query your web page access times.
This program is a simple example of php Tutorial mysql tutorial database tutorialPage counter instance codeIn this way, you can query the number of visits to your webpage.
Database-based page counters
$ Db = mysql_connect ("localhost", "root", "qwaszx ");
$ Query = "select * from num ";
$ Result = mysql_db_query ("test", $ query );
If ($ result ){
$ R = mysql_fetch_array ($ result );
$ Counter = $ r ["NumValue"];
$ Counter = $ counter + 1;
$ Query = 'update num set NumValue = '. $ counter. 'where id = 1 ';
$ Result = mysql_db_query ("test", $ query );
Mysql_close ();
Echo 'Hello, you are the '. $ counter.' guest ';
}
?>
Mysql database page counter instance code, so that you can query the number of visits to your web page. This program is a simple instance...