PHP-PDO-MySQL-Class icon indicating copy to clipboard operation
PHP-PDO-MySQL-Class copied to clipboard

Added call method

Open dariop opened this issue 6 years ago • 3 comments

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; }

dariop avatar Nov 05 '18 22:11 dariop

?

lincanbin avatar Nov 06 '18 04:11 lincanbin

I was not able to call a stored procedure with any method, so I write this simple method to use CALL stored_procedures ()

dariop avatar Nov 06 '18 06:11 dariop

@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".

marcus-hiles avatar Mar 27 '19 11:03 marcus-hiles