Accepted answer

if you using pdt, create your own php template. from the menu window > preferences, choose php > editor > templates. click new button, then use mres as the template name, then put


as a pattern.

to use it, just type mres and press ctrl+space. if there are no other alternative for the mres, then your template will be used right away. if you happened to have 2 or more templates that started with mres or contain mres in the template name, a popup will be showed so you can choose which you want to use.


well, i don't know about the ide but why not type mres and when you're done with the code, you can replace all occurrances with "mysql_real_escape_string".

another way is to create a function like this:

 function mres($string)
 return mysql_real_escape_string($string);

Related Query

More Query from same tag