& Lt ;? Php/*** add article * 2011/8/21 * kcj **/include & quot; isLogin. php & quot; include & quot ;.. /FCKeditor/fckeditor. php & quot; include & quot ;.. /conn. php & quot; $ FCKedi
/**
* Add an article
* 2011/8/21
* Kcj
**/
Include "isLogin. php ";
Include "../FCKeditor/fckeditor. php ";
Include "../conn. php ";
$ FCKeditor = new FCKeditor ("content ");
$ FCKeditor-> BasePath = '../FCKeditor /';
$ Title = $ _ POST ['title'];
$ Url = $ _ POST ['URL'];
$ Zhaiyao =$ _ POST ['zhaiao'];
$ 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. "', now ())";
Mysql_query ($ SQL );
Echo "the article has been added successfully ";
}
?>
Untitled Document