mysqli_connect

(PHP 5)

mysqli_connectПсевдонім mysqli::__construct()

Опис

Ця функція є псевдонімом: mysqli::__construct()

add a note add a note

User Contributed Notes 1 note

up
-47
mparsa1372 at gmail dot com
3 years ago
Example (MySQLi Object-Oriented)

<?php
$servername
= "localhost";
$username = "username";
$password = "password";

// Create connection
$conn = new mysqli($servername, $username, $password);

// Check connection
if ($conn->connect_error) {
  die(
"Connection failed: " . $conn->connect_error);
}
echo
"Connected successfully";
?>
To Top