Beispiel #1
0
 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;
 }
Beispiel #2
0
 public static function callProcedure($procname, $args = null)
 {
     $connection = DBConnectionManager::getProperConnection("CALL {$procname}");
     $db = MDB::Cursor($connection, $procname);
     $data = $db->call($procname, $args);
     return $data;
 }