Results 1 to 1 of 1

Thread: I created a wysiwyg editor but I dont arrive to save the posts in the database

  1. #1
    Join Date
    May 2016
    Posts
    12
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Unhappy I created a wysiwyg editor but I dont arrive to save the posts in the database

    Hi, how I can put in the database things posted on my wysiwyg editor? I tryed many ways with what I know of php but it does not work.
    I created this code: (I don't have enough knoledge for all this)
    PHP Code:
    <?php

    if(isset($_POST['submit']))
    {
    if(!empty(
    $_POST['titulo'])&&!empty($_POST['mensagem']))

    {
    $titulo=$_POST['titulo'];
    $mensagem=$_POST['mensagem'];
    $id=$_POST['id'];


    $query=mysql_query("INSERT INTO db(id,titulo, mensagem,password, myfile) VALUES // here I try to insert in the db, but Nothing!!!
    ('
    $id','$titulo','$mensagem','$password', '$name')");

    }

    } else echo 
    "Vous devez saisir tout les champs pour pouvoir poster un commentaire";

    ?>
    Last edited by jscheuer1; 06-11-2016 at 08:30 PM. Reason: format code

Similar Threads

  1. Create a WYSIWYG editor (embedded)?
    By djr33 in forum HTML
    Replies: 55
    Last Post: 10-30-2012, 09:13 AM
  2. WYSIWYG Editor Maintain Formatting
    By bluewalrus in forum Computer hardware and software
    Replies: 5
    Last Post: 12-02-2010, 04:13 PM
  3. Released a UBBEditor WYSIWYG UBB Editor
    By jetiben in forum JavaScript
    Replies: 0
    Last Post: 06-23-2010, 05:22 AM
  4. a better WYSIWYG editor?
    By unknownerrors in forum The lounge
    Replies: 7
    Last Post: 02-07-2007, 10:03 AM
  5. Font used in WYSIWYG editor script
    By rizlaa in forum Graphics
    Replies: 1
    Last Post: 08-04-2006, 12:52 PM

Bookmarks

Posting Permissions

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