include "../top.php"; include "../config.php"; include "../j2hblock.php"; if ($key=="修改") { if($j2hreply =='1'){ $date=date("Y-m-d H:i:s"); $icon="../images$j2h4"; $query="insert into $booktable (j2h,j2h2,j2h3,j2h6,j2h7,username,date) values ('$cookiename','$icon','1','$j2h8','$memberuser','$username','$date')"; if(mysql_query($query)){ $query_string = "update $table set message=message+1 where username='$username'"; $result = mysql_query($query_string,$conID) or die($query_string); }} $sql_update = "update $booktable set j2h4='$j2h4',j2h8='$j2h8' where id='$id' and username='$memberuser'"; $result = mysql_query ($sql_update,$conID) or die ($sql_update); echo "