Voting

: three plus five?
(Example: nine)

The Note You're Voting On

a dot brock at hhv-rheinklang dot de
18 years ago
I have a solution for the problem with the strings beeing interpreted as filename because of the single quotes:

Just add a blank to the end of the string:

<?php
function odbc_escape_params ($params) {
if (!
is_array($params) or empty($params)) {
return array();
}
foreach (
$params as $key=>$val) {
if (
strlen($val) > 1 and $val{0} == "'" and $val{strlen($val)-1} == "'") {
$params[$key] .= ' ';
}
}
return
$params;
}
?>

<< Back to user notes page

To Top