Update database.php
This commit is contained in:
parent
fc30285fd0
commit
d357ec257a
|
@ -92,11 +92,17 @@ if(!check_function_exists("get_db_binded_param")) {
|
||||||
|
|
||||||
if(!check_function_exists("get_db_binded_sql")) {
|
if(!check_function_exists("get_db_binded_sql")) {
|
||||||
function get_db_binded_sql($sql, $bind) {
|
function get_db_binded_sql($sql, $bind) {
|
||||||
|
$binded_sql = false;
|
||||||
|
|
||||||
|
if(loadHelper("string.utils")) {
|
||||||
$exps = multi_str_split($sql, array(" ", "<>", ">=", "<=", "=", "(", ")", "\r\n", "\n", "\t"));
|
$exps = multi_str_split($sql, array(" ", "<>", ">=", "<=", "=", "(", ")", "\r\n", "\n", "\t"));
|
||||||
foreach($exps as $k=>$v) {
|
foreach($exps as $k=>$v) {
|
||||||
$exps[$k] = get_db_binded_param($v, $bind);
|
$exps[$k] = get_db_binded_param($v, $bind);
|
||||||
}
|
}
|
||||||
return implode("", $exps);
|
$binded_sql = implode("", $exps);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $binded_sql;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user