require ("../../conn.php");
require ("../../fun_liu.php");
$id=$HTTP_GET_VARS['id'];
$now=date(Y)."-".date(m)."-".date(d)." ".date(h).":".date(m).":".date(s);
$id0=$HTTP_POST_VARS[id0];
$reid=$HTTP_POST_VARS[reid];
$type=$HTTP_POST_VARS[type];
$content=$HTTP_POST_VARS[content];
$username=$HTTP_POST_VARS[username];
if($reid){
$wtime=date("Y-m-d")." ".date("H:i");
$addsql="insert into pinglun(send_name,content,type,branch_id,add_time,re) values('$username','$content',9,$id0,'$wtime',$reid)";
if($addquery=mysql_query($addsql,$conn)){
$hironsql="update news_message set hiron=hiron+1 where id=$id0";
$hironquery=mysql_query($hironsql);
}
}else{
if($type=="add"){
$wtime=date("Y-m-d")." ".date("H:i");
$addsql="insert into pinglun(send_name,content,type,branch_id,add_time,re) values('$username','$content',9,$id0,'$wtime',0)";
if($addquery=mysql_query($addsql,$conn)){
$hironsql="update news_message set hiron=hiron+1 where id=$id0";
$hironquery=mysql_query($hironsql);
}
}
}
?>
Gore-tex@“户外店与我的户外生活”网络征文活动