score:4
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
mysql_real_escape_string(${cursor})
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.
score:-2
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);
}
Source: stackoverflow.com
Related Query
- Eclipse PHP IDE - custom auto complete tags
- Properties of new tags using composite component are not displayed by Eclipse auto complete shortcurt
- Eclipse IDE Auto complete bug skipping line and moving cursor to middle of the next line
- Eclipse "cannot find the tag library descriptor" for custom tags (not JSTL!)
- How to find complete list of warnings in eclipse IDE
- Setting auto complete shortcuts in Eclipse
- Eclipse Java auto complete changes exact matches to substring matches
- Eclipse auto complete doesn't work with lambda and types
- How to setup eclipse ide for php development with pre-existing source
- How to use xdebug with eclipse IDE for PHP
- Make Custom Project template in Eclipse IDE
- Fuzzy auto complete in Eclipse
- Writing custom IDE on top of Eclipse
- Enable Task Tags in Scala IDE for Eclipse
- Eclipse IDE content assist for custom XMLs
- Eclipse (Juno) hangs on JSF EL Expression Auto Complete
- no JavaScript auto complete in PyDev Eclipse project
- Eclipse PHP autocomplete acting funny, some files complete some don't
- Java class methods do not auto complete in Jython using Eclipse Pydev
- Eclipse Code Hinting on JSP with Custom Tags (taglib)
- IDE development for CodeIgniter PHP framework in ECLIPSE
- In the Eclipse HTML editor, is there an easy way to have custom tags available in content assist (autocomplete)?
- Eclipse support for custom facelets tags
- Arraylist auto complete in eclipse
- Auto Complete activates after 2 characters Eclipse
- Auto complete a statement in eclipse
- Eclipse auto complete not working
- Eclipse PHP IDE annoyance
- When adding an unimplemented method to a class, is there a way to auto import comments in an eclipse IDE for the method?
- Eclipse in adt-bundle for android development freezes by auto complete
More Query from same tag
- "The project: swing which is referenced by the classpath, does not exist" in Eclipse when project name is the same as workspace name
- Unable to understand this Java Stream+Generics example
- Error with map & flatMap on RDDs in Eclipse with Spark
- Error ORA-01000: maximum open cursors exceeded
- What's wrong with my comparable method? Trying to sort int fields within objects
- How do I incorporate database connection into AspectJ?
- how to rectify my error by using sonar
- Files not found after packing everything up to a Jar-File, though its working in Eclipse
- Can't access Tomcat 7 Manager app when running from Eclipse
- How to create constant connection between Java app and Oracle DB
- android phonegap non compiled project
- How to use CoffeeScript and Eclipse together in Windows?
- 'If' Statement Failing Check Involving String Array
- filenotfound issues in eclipse on Mac OSX
- getting all the data from mysql database table is not working in java
- Eclipse Kepler startup error "NoClassDefFoundError: org/eclipse/swt/widgets/Display"
- Auto-upload on save
- Eclipse Crashing on Launch JVM terminated. Exit code=2 Error
- Eclipse debug memory usage
- How to change the value of ${user} variable used in Eclipse templates
- Eclipse/Tomcat publishing unnecessary/problematic dependencies
- Textview.settext() giving nullpointer exception
- Eclipse toString() generator with nested indentation
- Increasing Java heap size in Eclipse - using virtual memory
- Eclipse yellow dot symbol
- How to develop java application on remote ubuntu server?
- Eclipse: How can I search for a string inside an application library?
- Packaging other projects with GAE
- Error says 'configure to use a jdk' though eclipse uses its own compiler. What could be the reason for it?
- Awkward result while reading file containing spaces in pathname using getResource() in java