很多人都在问这个问题.下面来看看吧.
<?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];?>人次');
时间: 2024-11-11 03:09:14