当前位置:编程学习 > php >>

php实现静态点击

很多人都在问这个问题.下面来看看吧.

<?php
require_once("boke/inc/re_conn.php");
$id =isset($_GET['id'])?$_GET['id']:'';
if(!is_numeric($id)){
 exit('unkown');
}else{
 $sql ="update filecontent set filebrower=filebrower+1 where id=$id";
 mysql_query($sql);
 $result =mysql_query("select id,filebrower from filecontent where id=$id");
 $rs  =mysql_fetch_array($result);
 
}
?>
document.write('<?php echo $rs[1];?>人次');

补充:Php教程,Php入门 
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,