www.webdeveloper.com
Results 1 to 3 of 3

Thread: double quotes inserts in MySql

Hybrid View

  1. #1
    Join Date
    Jun 2008
    Posts
    33

    double quotes inserts in MySql

    HI,

    Does anyone know how to get double quotes to insert into database?

    I use
    PHP Code:
    $writer_thought mysql_real_escape_string($writer_thought); 
    But it only works for the single quotes. All double quotes and everything in between are not inserted.

    Thanks for you help.

    Oh and the ini.php magic quotes are turned off already.

  2. #2
    Join Date
    Feb 2013
    Posts
    2
    Can You post a sample of inserted data which contains double quotes ?
    Also, Please post Your complete code.

  3. #3
    Join Date
    Jun 2008
    Posts
    33
    Thanks for responding. I just solved it.


    $writer_thought = mysql_real_escape_string($writer_thought);

    $sql = "INSERT INTO $table (writer_thought,
    ....)

    VALUES ('$writer_thought,
    .....
    )";

    I just solved the problem, somehow I managed to accidentall delete the

    $writer_thought = stripslashes(TRIM($writer_thought));

    In the form....

    Everything is working now.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles