Hi I am new to ckeditor. I just tried to integrate CKeditor with a php program .I have 2 links in my webpage viz.- "About Us" or "Contact Us" link which on clicking will allow to edit the text in the respective textarea.I am using MySQL as db & Firefox 13 as well as Internet Explorer 8 as browsers. But neither of the browsers are showing the CKeditor except the textarea when I click on "About Us" or "Contact Us" link!! Here is the PHP MySQL script-
I have page saved in this path "htdocs/www/one" where 'one' is the folder name containing the CKeditor. Also,I have unzipped the latest CKeditor. Please tell me what extra script I have to add to the above code? I am a complete novice in this field. I will be greatly obliged if anyone can kindly throw some light on these!!
P.S. :: THIS IS A COLLEGE PROJECT DONE BY A STUDENT JUST FOR EDUCATION & LEARNING PURPOSE ONLY.
<?php session_start(); include "lib/conn.php"; include "lib/chk.php"; if($_POST["edit_page"]) { $sql="update `page` set `detail`='$_POST[add]' where `page_name`='$_POST[edit_page]'"; mysql_query($sql); $_GET['page']=$_POST['edit_page']; } include "lib/style1.php"; include "lib/menu.php"; include "lib/leftmenu.php"; ?> <script type="text/javascript" src="ckeditor_source.js"></script> <?php $sq="select * from `page` where `page_name`='$_GET[page]'"; $res=mysql_query($sq); while($rw=mysql_fetch_array($res)) { ?> <FORM METHOD=POST ACTION="edit.php" name="f1"> <INPUT TYPE="hidden" NAME="edit_page" value="<?php echo $_GET[page];?>"> <TEXTAREA NAME="add" ROWS="5" COLS="20"> <?php echo $rw[detail];?> </TEXTAREA> <BR> <INPUT TYPE="submit" name="ed" value="edit"> <?php } ?> </FORM> <?php include_once"ckeditor/ckeditor.php"; $CKEditor=new CKEditor(); $CKEditor->basePath='ckeditor/'; $CKEditor->replace("add"); ?>
I have page saved in this path "htdocs/www/one" where 'one' is the folder name containing the CKeditor. Also,I have unzipped the latest CKeditor. Please tell me what extra script I have to add to the above code? I am a complete novice in this field. I will be greatly obliged if anyone can kindly throw some light on these!!
P.S. :: THIS IS A COLLEGE PROJECT DONE BY A STUDENT JUST FOR EDUCATION & LEARNING PURPOSE ONLY.