shwetapandit Posted November 29, 2013 Share Posted November 29, 2013 If ANyone uses CK editor then plz help me i m in great trouble.i download ck editor from the site and after unzip the folder paste all the files where my PHP files are.But can't find how to use it.any help is greatly appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/284383-ck-editor/ Share on other sites More sharing options...
Solution Ch0cu3r Posted November 29, 2013 Solution Share Posted November 29, 2013 Did you look here first before posting http://docs.ckeditor.com/#!/guide/dev_installation Quote Link to comment https://forums.phpfreaks.com/topic/284383-ck-editor/#findComment-1460655 Share on other sites More sharing options...
shwetapandit Posted November 30, 2013 Author Share Posted November 30, 2013 Did you look here first before posting http://docs.ckeditor.com/#!/guide/dev_installation Did you look here first before posting http://docs.ckeditor.com/#!/guide/dev_installation thanks for help. i got it now.But how to display the textarea content from database using ckeditor. Quote Link to comment https://forums.phpfreaks.com/topic/284383-ck-editor/#findComment-1460689 Share on other sites More sharing options...
shwetapandit Posted November 30, 2013 Author Share Posted November 30, 2013 i did it....... <html><head><script src="../ckeditor.js"></script></head><?php$conn=mysql_connect("localhost","root","")or die(mysql_error());mysql_select_db("regis")or die(mysql_error());print_r($_GET);$p_id=$_GET['p_id'];$query=mysql_query("SELECT p_content FROM admin_page WHERE p_id='$p_id'")or die(mysql_error());$row=mysql_fetch_array($query,MYSQL_ASSOC);?><textarea cols="80" id="p_content" name="p_content" rows="10" > <?php echo $row['p_content']; ?></textarea>//print_r ($row['p_content']);</html> Quote Link to comment https://forums.phpfreaks.com/topic/284383-ck-editor/#findComment-1460692 Share on other sites More sharing options...
shwetapandit Posted November 30, 2013 Author Share Posted November 30, 2013 <html><head><script src="http://localhost:81/assignment/ckeditor/ckeditor.js"></script></head><body><div style='padding-top:50px'> CKEDITOR:<div><div><?php$conn=mysql_connect("localhost","root","")or die(mysql_error());mysql_select_db("regis")or die(mysql_error());$p_id=$_GET['p_id'];$query=mysql_query("SELECT p_content FROM admin_page WHERE p_id='$p_id'")or die(mysql_error());$row=mysql_fetch_array($query,MYSQL_ASSOC);?><textarea cols="80" id="p_content" name="p_content" rows="10" > <?php echo $row['p_content']; ?></textarea></div><script type='text/javascript'> CKEDITOR.replace( 'p_content' );</script></body></html> Quote Link to comment https://forums.phpfreaks.com/topic/284383-ck-editor/#findComment-1460704 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.