...

View Full Version : how to integrate fck editor in my php code?



pranav
01-30-2009, 03:28 PM
PLs help me out to integrate the fck editor into my PHP code and connection of it data to Mysql db....

kokjj87
01-30-2009, 03:52 PM
I hope that this will help you.

Create the editor:


//patht to the fckeditor class
include("fckeditor/fckeditor.php");

//pass in a name for the field
$fck = new FCKeditor('field');
//to the folder of the fckeditor
$fck->BasePath = 'fckeditor/';
//default text to show in the editor
$fck->Value = "Please Enter Your Information";
//render the editor
$fck->Create();


To get the data:


echo $_POST['field'];

angst
01-30-2009, 03:55 PM
are you looking for someone to do this work for you? or are you trying to do it yourself and need help??
you provide no information & no examples.

so start with, have you build a data base yet? if so, the next step will be for you to create a connection to mysql. (http://ca2.php.net/mysql_connect)

once you've completed that download a copy of fck (http://www.fckeditor.net/download).

upload it to your server, then post back. no one here is going to do your work for you, but we can help you if you run into any issues while getting this running. post back with specific questions.

pranav
01-30-2009, 06:21 PM
NOT FOUND message is displayed on the browser page
a message:
"The required URL/fckeditor/editor/fckeditor.html was not found on this server."
is displayed.
What can b the problem? pls help?

kokjj87
01-30-2009, 06:45 PM
You did not place the fckeditor folder correctly.



//the fck folder and and your php file in a single directory
your_php_page.php //contain what i have provided above
fckeditor //fckeditor folder
|-editor

pranav
01-30-2009, 06:54 PM
You did not place the fckeditor folder correctly.



//the fck folder and and your php file in a single directory
your_php_page.php //contain what i have provided above
fckeditor //fckeditor folder
|-editor
Thanks Kokj, Its working!!!!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum