• Friday , 22 September 2017

CKEditor PHP Tutorial | How to Insert CKEditor Text MySQL Databse using PHP ( PART 2 )

Code Canyon



CKEditor PHP Tutorial | How to Insert CKEditor Text MySQL Databse using PHP ( PART 12)

Original source

3d Ocean

Related Posts

19 Comments

  1. Araf H Raaj
    August 18, 2017 at 04:28

    Both of your two videos were essential… Thanks… Shouldn't it be, if(isset($_Post('submit'))) ?

  2. Alex B
    August 18, 2017 at 04:28

    Hi, I had problem with auto writing to database after load or refresh ckeditor page so i had to find out how to check if textarea is empty and stop it writing blank data to database. so here is code :
    <?php
    include '../databaseconnect.php';
    ?>
    <?php
    // CHECK EMPTY TEXTAREA
    if (!strlen(trim($_POST['editor'])))
    {
    echo "EMPTY";
    // KILL IF TEXTAREA IS EMPTY
    die;
    }
    else
    {
    //WRITE

    if (isset($_POST['editor']))
    {
    $cont = $_POST['editor'];
    echo "$cont";
    }
    }
    //WRITE TO DB
    $query = mysqli_query($msconn, "INSERT INTO data (cont) VALUES ('$cont')");
    if ($query)
    {
    echo "WRITE DB OK";
    }
    else
    {
    echo "WRITE DB ERROR";
    }
    mysqli_close($msconn);
    ?>

  3. Kevin Ramirez
    August 18, 2017 at 04:28

    You can send me your project with database please ?

  4. DJ SMITS
    August 18, 2017 at 04:28

    how can i select and view the content?

  5. Muhammad Zulhilmi
    August 18, 2017 at 04:28

    10Q

  6. TORENT VR
    August 18, 2017 at 04:28

    im looking explentation for ckeditor and finally i have find it in your video – great job! greetings from Poland

  7. Emily Matulac
    August 18, 2017 at 04:28

    i could not get the value of textare using this $('#editor1').val(). how can i get the value of textarea in javscript?, please realy need help. thanks

  8. felipe castillo
    August 18, 2017 at 04:28

    I love you man

  9. Daniel Patryk Mazurek
    August 18, 2017 at 04:28

    I very thank you. This film very help me.

  10. Rosslancer Suraiya
    August 18, 2017 at 04:28

    i have been facing problem in view page. html tag show in view page. can you help me about this?

    like shows in view page —–

     <p><strong>dsfh</strong> <s>gdhdjh</s>
    <u>gsdghshs</u><span style="font-size:48px">
    fasfaga</span><u> afadag </u><span
    style="font-size:24px"><span style="font-family:Comic Sans
    MS,cursive">afdagadg</span></span></p>

    thnx

  11. ENJOY STUDYING
    August 18, 2017 at 04:28

    I've tried this … but nothing goes … i did everything you've done but it doesn't send any thing to DB
    it just refresh the page :/

  12. Shashank Uniyal
    August 18, 2017 at 04:28

    why did you check if(isset($_POST['editor'])) ?

  13. ENJOY STUDYING
    August 18, 2017 at 04:28

    I Totally like the video 😀
    here is one subscribe and a thump Up (y) (y)

  14. luân trần thành
    August 18, 2017 at 04:28

    I inserted to database, how can i edit in ckeditor, please help me.

  15. Mudit Shukla
    August 18, 2017 at 04:28

    how you embed the editor on text area using only class ? please explain

  16. phanuwat St
    August 18, 2017 at 04:28

    Hi, I have written code same you, but not insert to database , but echo "$ text"; After hitting submit, please help me.

  17. Abid Ali
    August 18, 2017 at 04:28

    Perfect.. Thumbs Up…

  18. Lukas Antipoff
    August 18, 2017 at 04:28

    Hello, you just earned a subscriber and a like. Very clear tutorial! Thanks!

  19. Mario Haberle
    August 18, 2017 at 04:28

    what if user inputs image? do i still use content as type of varchar?

Leave A Comment

You must be logged in to post a comment.