Jump to content

Problem with my code using _string


jonw118

Recommended Posts

I use FCKeditor and when I use this line for inserting the code into the database, it is automatically inserting a "rn" at the beginning of every time there is a line break.

 

Can someone think of what I need to change so it does not insert that when adding it into the database?

 

I think it has something to do with the line I highlighted in red

 

if(isset($HTTP_POST_VARS['name'])) {

saveEdContent($HTTP_POST_VARS['name'], mysql_real_escape_string($HTTP_POST_VARS['editor_content']));

}

tep_redirect(tep_href_link(FILENAME_PROFORMA_FC, 'action=edit_unit&pf_name='.$HTTP_POST_VARS['name']));

break;

 

Thanks so much!

Link to comment
Share on other sites

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.