PHP-PDO-MySQL-Class
PHP-PDO-MySQL-Class copied to clipboard
Added call method
Maybe someone could find it interesting ...
public function call($query, $params = null, $fetchmode = PDO::FETCH_ASSOC) { $this->Init($query, $params); $result = $this->sQuery->fetchAll($fetchmode); $this->sQuery->nextRowset(); return $result; }
?
I was not able to call a stored procedure with any method, so I write this simple method to use CALL stored_procedures ()
@dariop your question is still not clear, please provide more info on what you are trying to achieve and provide the full class codes. Just the "call" function alone is a little vague, since you are calling many protected variables such as "$this->sQuery".