Hello everybody,
My question is how to insert special characters and symbols in Mysql5 database and how to retrieve them from database in php.
Here i am inserting some data from a form,by post method like
[PHP]$data=$_post[''field name"];[/PHP]
after this i am inserting in database,
[PHP]mysql_query("in sert into tbl_name(column name) values('$data') ");[/PHP]
Everthing working fine when we insert simple text in the form,but failing when special character are entered. eg: "",&,("some text").
And onemore thing i want to insert some mathematical equations or chemical equations into database how?
My question is how to insert special characters and symbols in Mysql5 database and how to retrieve them from database in php.
Here i am inserting some data from a form,by post method like
[PHP]$data=$_post[''field name"];[/PHP]
after this i am inserting in database,
[PHP]mysql_query("in sert into tbl_name(column name) values('$data') ");[/PHP]
Everthing working fine when we insert simple text in the form,but failing when special character are entered. eg: "",&,("some text").
And onemore thing i want to insert some mathematical equations or chemical equations into database how?
Comment