Home >Backend Development >PHP Tutorial >PHP implementation of static HTML page page views statistics example code_PHP tutorial
PHP implementation of static HTML page statistics page views example code
news.html
< ;/head>
act.php
$db = mysql_connect(localhost,root, 123456) or die ("Failed to connect to database");
mysql_select_db(zend, $db);
mysql_query( "SET NAMES utf8");
mysql_query("update info set msg=msg 1 where id=1");
$sql = "select msg from info where id=1";
$rs = mysql_query($sql);
$row = mysql_fetch_array($rs);
$str = $row[msg];
$json_string = $str;
echo "getProfile($json_string); ";
?>