@ $db=mysql_pconnect("localhost", "dfguser","password");
mysql_select_db("signup") ;
$result=mysql_query("select * from count where id = '314'");
$row=mysql_fetch_array($result);
$a=$row["num"];
$a+=1;
$query = "update count set num=$a where id='314'";
$result=mysql_query($query);
mysql_close();
echo " 浏览量:".$a." ";
?>
|