Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Jan 2009
    Posts
    20
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Question how to integrate fck editor in my php code?

    PLs help me out to integrate the fck editor into my PHP code and connection of it data to Mysql db....

  • #2
    Regular Coder kokjj87's Avatar
    Join Date
    Sep 2008
    Location
    Singapore
    Posts
    279
    Thanks
    1
    Thanked 55 Times in 54 Posts
    I hope that this will help you.

    Create the editor:
    PHP Code:
    //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:
    PHP Code:
    echo $_POST['field']; 

  • Users who have thanked kokjj87 for this post:

    uncleroxk (02-07-2009)

  • #3
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts
    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.

    once you've completed that download a copy of fck.

    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.

  • #4
    New Coder
    Join Date
    Jan 2009
    Posts
    20
    Thanks
    5
    Thanked 0 Times in 0 Posts
    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?

  • #5
    Regular Coder kokjj87's Avatar
    Join Date
    Sep 2008
    Location
    Singapore
    Posts
    279
    Thanks
    1
    Thanked 55 Times in 54 Posts
    You did not place the fckeditor folder correctly.

    Code:
    //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

  • Users who have thanked kokjj87 for this post:

    pranav (01-30-2009)

  • #6
    New Coder
    Join Date
    Jan 2009
    Posts
    20
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by kokjj87 View Post
    You did not place the fckeditor folder correctly.

    Code:
    //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!!!!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •