⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 check_file.php

📁 十大精典PHP项目开发全程案例+代码
💻 PHP
字号:
<?php
session_start();
include "Conn/conn.php";
if($btn_tj<>""){
$title=$_POST[txt_title];
$author=$_SESSION[username];
$content=$_POST[file];
$now=date("Y-m-d H:i:s");
$sql="Insert Into tb_article (title,content,author,now) Values ('$title','$content','$author','$now')";
$result=mysql_query($sql);
if($result){
	echo "<script>alert('恭喜您,你的文章发表成功!!!');window.location.href='file.php';</script>";
}
else{
	echo "<script>alert('对不起,添加操作失败!!!');window.location.href='file.php';</script>";
}
}
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -