feel free to keep it strictly simple...


Method "mysql_escape"


The only static class method of class_database. Similar to "mysql_real_escape_string".


Class-Method available since L* 1.3.2


This method is for backward compatiblity (for old modules and/or wb/wbce) only!
Using "simple_query", or "execute_query", or "build_and_execute" the passed params are bind via "prepare" and "execute" automatic by PDO! 



Example given

//  pass a value

$str = LEPTON_database::mysql_escape( $str );

//  pass an array

$array = LEPTON_database::mysql_escape( $array );
last edit: 23/03/2017 - 20:58