What is mysql_real_escape_string used for?



What is mysql_real_escape_string used for?..

Answer / Subhay Chandra

mysql_real_escape_string() is a PHP function that escapes special characters in a string, making it safe to be used in an SQL query. This helps prevent SQL injection attacks.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What is the best php framework 2018?

1 Answers  


How failures in execution are handled with include() and require() functions?

1 Answers  


What is difference between mysqli and mysql?

1 Answers  


Suppose a variable may passed to other page using any of get,post,session,cookie methods and u want to retrive that variable value . what is the syntax?

6 Answers  


What does the expression exception::__tostring means?

1 Answers  


How can we change the maximum size of the files to be uploaded?

1 Answers  


How to call javascript function in php on button click?

1 Answers  


How can i execute PHP File using Command Line?

1 Answers  


How can you encrypt password using php?

1 Answers  


How to convert a character to an ascii value?

1 Answers  


How to download a php script directly in your script page?

3 Answers   A1 Technology, Zmanda,


Is php 7.0 stable?

1 Answers  


Categories