很多人都在問這個問題.下面來看看吧.
<?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];?>人次');