Php simple anti-brush counter-PHP instance. Php simple anti-brush counter-PHP instance [Guide] php simple anti-brush counter, lt ;? Phprequire_onceconfig.php; functioncounter {nbsp; session_start; nbsp; $ sqlselectcounterfromcounter; nbsp; $ re php simple anti-brush counter-PHP instance
[Guide] php simple anti-brush counter, lt ;? Phprequire_once 'config. php'; functioncounter {nbsp; session_start; nbsp;
$ SQL = selectcounterfromcounter; nbsp; $ result = @ MySQL_query $ SQL; nbsp; if! Empty $ resultnbsp; {nbsp; $ row = mysql_fetch_array $ result; nbsp; $ counter =++ $ row [co...
Require_once ('config. php ');
Function counter ()
{
Session_start ();
$ SQL = "select counter from counter ";
$ Result = @ MySQL_query ($ SQL );
If (! Empty ($ result ))
{
$ Row = mysql_fetch_array ($ result );
$ Counter = ++ $ row [counter];
If (! $ _ SESSION ['counter'])
{
$ Query = "update counter set counter = $ counter ";
$ Result = @ mysql_query ($ query );
If ($ result)
{
$ _ SESSION ['counter'] = true;
}
}
$ Counter_len = strlen ($ counter );
For ($ I = 0; $ I <$ counter_len; $ I ++)
{
$ Number = substr ($ counter, $ I, 1 );
If (isset ($ number ))
{
Echo "";
}
}
}
}
?>
Refer [Guide] php simple anti-brush counter, lt ;? Phprequire_once 'config. php'; functioncounter {nbsp; session_start; nbsp; $ SQL = selectcounterfromcounter; nbsp; $ re...