Jump to content

Edit Delete Form and Quotations


phpbeginner

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 ?

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.