Ec (2); & nbsp; & lt ;? Phprequire_once (config. php); function & nbsp; counter () {& nbsp; session_start (); & nbsp; $ SQL & quot; select & nbsp; counter & nbsp; from & nbsp; counter & quot; & nbsp; $ result @ mysq script ec (2); script
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 "". $ number. ". gif''> ";
}
}
}
}
?>
Www.cnjiaocheng.com
<