您好,欢迎访问一九零五行业门户网

php制作的bbs超经典

php制作的bbs超经典(全文在这里)http://115.com/lb/5lbcqol0flze true));$dbh -> query(set names 'utf8'; );$id=$_post['id']; $username = $_session['username']; //获取回帖人的相关信息 $sql = select * from user where username= '$username';$result = mysql_query($sql);$row = mysql_fetch_array($result);$row['score']=$row['score']+2;mysql_query(update user set score = '.$row['score'].' where username ='.$row['username'].'); $content = $_post['content'];//获取回帖的相关信息//$email = $row['email'];$date = date(y-m-d h:i:s);$date=date(y-m-d h:i);date_default_timezone_set(asia/shanghai);$time = date('y-m-d h:m:s');$y=date(y,strtotime($time));$m=date(m,strtotime($time));$d=date(d,strtotime($time));$h=date(h,strtotime($time));$w=date(w,strtotime($time));//$weeknumber=intval(date('w'));//$url = http://api.map.baidu.com/geocoder?location={$weidu},{$jingdu}&output=json;//$json = json_decode(file_get_contents($url), true);//$a=file_get_contents($url);//$province = $json['result']['addresscomponent']['province'];//$city = $json['result']['addresscomponent']['city'];$sql= insert into 表名(文章id,内容, 名字, 时间)values('$id', '$content', '$username', now());//$result=mysql_query($sql);if ($dbh -> query($sql)) { header(content-type:application/json); $arr = array('status' => 'ok'); echo json_encode($arr);}?>
复制代码
其它类似信息

推荐信息