Jump to content

textarea issue \\\\\\\\r\\\\\\\\n\\\\\\\\r\\\\\\\\n\\\\\\\\r\\\\\\\


Recommended Posts

It looks like you have magic quotes enabled.

go in to php.ini and check if it is enabled, if so put it off.

 

If you don't have access to php.ini

use stripslashes instead

 

There are quite some articles written about this. but if you can disable magic quotes do that

 

in addition to nightslyr,

 

mysql_real_escape_string requires a connection, if you don't have that nothing will happen. (so your function won't return anything)

can you place this above your script:

error_reporting(E_ALL);
ini_set("display_errors", 1);

 

and report what errors you get?

 

 

code that uses it is like this

 

$data['description'] = clean($data['description']);

 

 

well my magic quotes are turned off. ok so right not while checking error im using this clean function so what if i use it just before interting data into db does it make sense

 

so i use it like

 

description = '".clean($postData['description'])."',

 

while data being inserted? and yes i removed htmlspecialchars that was a mistake

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.