Most people are very yearning to use the database to do their own counters, message book, Forum and other things, this article will introduce my self-made counter program.
First set up the 0~9 10 gif digital pictures, put in the IMG folder, and then build a PHP file
--count1.php, the procedure is as follows:
$linkptr =mysql_pconnect ("localhost", "yourname", "password");
mysql_select_db ("Yourname", $linkptr);
mysql_query ("Update
, simple process can be as follows:
Fputs ($FPA, $count, strlen ($count));
Fputs ($FPB, $show, strlen ($show));
$count the contents of the =countid.php;
$show the contents of the =showid.php;
This produces the countid.php and showid.php two files, while allowing the database to insert Num=id, and finally return a piece of code, let the user know how to use this counter, all done!
But I think the application of the
Create a DIY three-step counter (on ). Most people are eager to use databases for counters, message books, forums, and other things. This article will introduce self-made counter programs. First, create 0 ~ 9 Most of these 10 GIF figures are eager to use databases for their counters, message books, forums, and other things. This article will introduce my own
This article will introduce your own counter on the mirror.
Let me assume that you have more than one mirror as an example, first in the datasheet inserts a few new data num, visited, which will be used in your mirror station, as long as the count1.php in the previous article can be changed.
First set up a folder count, which contains the file you want to use count2.php,count3.php ..., for example, such as Count2 source code, will count1.php to:
?
$l
This article will be on your own mirror station can also put on their own counters.
I assume that you have multiple mirror stations as an example, first insert a few new data in the data table num, visited, which will be used on your mirror station, as long as the count1.php in the previous article to change it.
First set up a folder count, put the file you want to use count2.php,count3.php ..., for example, such as Count2 source code, the count1.php changed to:
$linkptr =mysql_pconnect ("loca
This article describes how to add counters on your own image website. Assume that you have multiple image sites as an example. first, insert several new data num and visited into the data table, which will be used on your image site, change count1.php in the previous article. create a folder named count and put the count2.php, count3.php, and so on ......, For example, in the count2 source code, you can use cou to describe how to add counters on your own image site.
Assume that you have multiple
) = mysql_fetch_row ($ result );
$ Counter = sPRintf ("% 05d", $ counter );
For ($ I = 0; $ I $ Tmpstr = "";
Echo $ tmpstr;
}
?>
Note: "After this step is completed, create a folder show, and put the corresponding file show2.php in it,
Show3.php ......, Take show2.php as an example. write the source code as follows:
Document. write ("http://cnfree.oso.com.cn ta
This article describes how to add counters on your own image website.
Assume that you have multiple image sites as an example. First, insert several new data num and visited into the data table, which will be used on your image site, change count1.php in the previous article.
Create a folder named count and put the count2.php, count3.php, and so on ......, For example, change count1.php:
$ Linkptr = mysql_pconnect ("localhost", "yourname", "password ");
Mysql_select_db ("yourname", $ linkp
Create a counter DIY three-step (medium) this article will introduce how to add your own counters on your own image site.
Assume that you have multiple image sites as an example. first, insert several new data num and visited into the data table, which will be used on your image site, change count1.php in the previous article.
Create a folder named count and put the count2.php, count3.php, and so on ......,
This article will be on your own mirror station can also put on their own counters.
I assume that you have multiple mirror stations as an example, first insert a few new data in the data table num, visited, which will be used on your mirror station, as long as the count1.php in the previous article to change it.
First set up a folder count, put the file you want to use count2.php,count3.php ..., for example, such as Count2 source code, the count1.php changed to:
$linkptr =mysql_pconnect ("loca
("yourname", $ linkptr );
MySQL (best combination with PHP) _ query ("update counter
Set visited = visited + 1 where num = 2 ", $ linkptr );
$ Result = MySQL (the best combination with PHP) _ query ("select visited
From counter where num = 2 ", $ linkptr );
List ($ counter) = MySQL (the best combination with PHP) _ fetch_row ($ result );
$
Most people are eager to use databases for counters, message books, forums, and other things. This article will introduce self-made counter programs. First, create 0 ~ 9 put the 10 GIF images in the img folder and create a php file -- count1.php. The program is as follows :? $ Linkptrmysql_pconnect (localhost, yourname, password); EN "" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
Create a counter
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.