Jump to content

[SOLVED] apostrophe


DarkPrince2005

Recommended Posts

I have a web form that needs to save to a database but when there is any apostrophe in the field that needs to be saved it doesn't save at all.

 

is it maybe because the insert statement looks like:

 

                  insert into dis values('$_POST[comment]');

 

that the single quotations for $_POST is clashing with the apostrophe?

Link to comment
https://forums.phpfreaks.com/topic/75465-solved-apostrophe/
Share on other sites

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.