Jump to content

Recommended Posts

I have a form where I add a lot of ' and " for feet and inches into MYSql and most of this works fine except when I go back to the Edit/Delete Form.

 

It stores the ' and " in the database, reads and outputs the ' and " on my page but when I use the edit/delete form it cuts off at the '. Is there a simple solution to this on an edit/delete form ?

 

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/52796-edit-delete-form-and-quotations/
Share on other sites

When using the form to insert a new record it updates my database as it should with the ' and ". It also reads correctly onto my page but cuts off at the ' on my edit delete form.

 

I am not using addslashes when updating my database as it is updating and outputting all the ' and " with the exception of my edit form.

 

So are you saying I need to use addslashes on all of my update forms and then stripslashes to get this to work on the edit form ?

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.