I have this method for some class
public function bindParams($query, $params, $dbh){
if (!is_array($params)){
die('Second Argument for "bindParams" should be arrays');
}
$count = 0;
foreach($params as &$param){
$count++;
$query->bindParam($count, $param);
}
$query->execute();
if (false===$query){
die(print_r($dbh->errorInfo()));
}
}
Then I cut the code of this method to a file so I can just include it from a file. Then it doesn't run, and no errors are being shown either.
public function bindParams($query, $params, $dbh){
require_once 'functions/sql/bindprams.php';
}
What am I missing here.