Please advice. I get following error when i echo >>
echo $UpdateQuery->debugSQL();
Error: Warning: substr() expects parameter 1 to be string, array given in {filePath}\queryobj.php on line 227
Content of link 227 is " $thisType = substr($paramTypes,$x,1); "
Thank you once again.
FULL CODE IS BELOW:
// ps_com starts
public function debugSQL() {
$debugStatement = $this->Statement;
$paramTypes = $this->ParamTypes;
for ($x=0; $x<sizeof($this->ParamValues); $x++) {
$pos = strpos($debugStatement,"?");
$thisType = substr($paramTypes,$x,1);
if ($pos !== false) {
$debugStatement = substr_replace($debugStatement,(($thisType=="s")?"'":"") . $this->ParamValues[$x] . (($thisType=="s")?"'":""),$pos,strlen("?"));
}
}
return $debugStatement;
}
// ps_com ends