i am working in php. i want to write query like this:-
update user_account set university_name='St. Josed father's institute'
where userId=5;
but this is creating error due to ‘s means it creating problem because of single quote ‘ .
please suggest me how can i handle this. currently i am right this directly St. Josed father’s institute but in my php code this is in variable
$university_name
so please suggest me how can i check and remove such type of problem.
1 Answer