/**
* Add article
* 2011/8/21
* KCJ
* */
Include "islogin.php";
Include ". /fckeditor/fckeditor.php ";
Include ". /conn/conn.php ";
$FCKeditor =new FCKeditor ("content");
$FCKeditor->basepath = '. /fckeditor/';
$title =$_post[' title ';
$url =$_post[' url '];
$zhaiyao =$_post[' Zhaiyao '];
$author =$_post[' author '];
$laiyuan =$_post[' Laiyuan '];
$keyword =$_post[' keyword '];
$content =$_post[' content ';
if (Isset ($_post[' action "])! = ' &&$_post[' action ']=" add ") {
$sql = "INSERT into article (Title,url,zhaiyao,author,laiyuan,keyword,content,ctime) values
(' ". $title." ', ' ". $url." ', ' ". $zhaiyao." ', ' ". $author." ', ' ". $laiyuan." ', ' ". $keyword." ', ' ". $content.
mysql_query ($sql);
echo "article added Success";
}
?>
<title>Untitled Document</title>
Add Articles to background management
/**
* Add article
* 2011/8/21
* KCJ
* */
Include "islogin.php";
Include ". /fckeditor/fckeditor.php ";
Include ". /conn/conn.php ";
$FCKeditor =new FCKeditor ("content");
$FCKeditor->basepath = '. /fckeditor/';
$title =$_post[' title ';
$url =$_post[' url '];
$zhaiyao =$_post[' Zhaiyao '];
$author =$_post[' author '];
$laiyuan =$_post[' Laiyuan '];
$keyword =$_post[' keyword '];
$content =$_post[' content ';
if (Isset ($_post[' action "])! = ' &&$_post[' action ']=" add ") {
$sql = "INSERT into article (Title,url,zhaiyao,author,laiyuan,keyword,content,ctime) values
(' ". $title." ', ' ". $url." ', ' ". $zhaiyao." ', ' ". $author." ', ' ". $laiyuan." ', ' ". $keyword." ', ' ". $content.
mysql_query ($sql);
echo "article added Success";
}
?>
Untitled Document
Add article www.2cto.com, background management
Excerpt from chaojie2009 's column
http://www.bkjia.com/PHPjc/478359.html www.bkjia.com true http://www.bkjia.com/PHPjc/478359.html techarticle PHP/** * Add Article * 2011/8/21 * KCJ * */include islogin.php; include: /fckeditor/fckeditor.php; Include: /conn/conn.php; $FCKeditor =new FCKeditor (content); $FCKeditor-base ...