SM
Size: a a a
SM
SM
VP
SM
VP
EL
EL
MM
EL
VP
D
EL
try {
$this->mysqli = new mysqli($this->host, $this->login[$loginIndex], $this->password[$loginIndex], $this->name);
} catch (Exception $e) {
throw $e;
}
$mysqli_connect_errno = mysqli_connect_errno();
$mysqli_connect_error = mysqli_connect_error();
if ($mysqli_connect_errno) {
throw new Exception($mysqli_connect_errno . ': ' . $mysqli_connect_error);
}
mysqli_set_charset($this->mysqli, 'utf8');
$mysqli_stmt = mysqli_stmt_init($this->mysqli);
if (mysqli_stmt_prepare($mysqli_stmt, $query)) {
mysqli_stmt_execute($mysqli_stmt);
mysqli_stmt_get_result($mysqli_stmt);
mysqli_stmt_close($mysqli_stmt);
} else {
throw new Exception(mysqli_error($this->mysqli));
}
mysqli_kill($this->mysqli, mysqli_thread_id($this->mysqli));
mysqli_close($this->mysqli);
EL
SM
EL
Н
SM
MM
EL