public static function callProcedure($procname, $args = null) { $connection = DBConnectionManager::get_connection(DATABASE_HOST, DATABASE_USER, DATABASE_PASSWORD, DATABASE_NAME); $db = MDB::Cursor($connection, $procname); $data = $db->call($procname, $args); return $data; }
public static function callProcedure($procname, $args = null) { $connection = DBConnectionManager::getProperConnection("CALL {$procname}"); $db = MDB::Cursor($connection, $procname); $data = $db->call($procname, $args); return $data; }