*/
/// TODO: Decide if this method should go to DDL instead of being here
public function create_database($dbhost, $dbuser, $dbpass, $dbname, array $dboptions=null) {
+ $driverstatus = $this->driver_installed();
+
+ if ($driverstatus !== true) {
+ throw new dml_exception('dbdriverproblem', $driverstatus);
+ }
+
ob_start();
$conn = new mysqli($dbhost, $dbuser, $dbpass); /// Connect without db
$dberr = ob_get_contents();