“mysqli Connect” Kode Jawaban

mysqli Connect


<?php
$mysqli = new mysqli("localhost","my_user","my_password","my_db");

// Check connection
if ($mysqli -> connect_errno) {

  echo "Failed to connect to MySQL: " . $mysqli -> connect_error;
  
  exit();

  }
?>
Lovely Lemur

mysqli_connect

$con = mysqli_connect("localhost","my_user","my_password","my_db");

// Check connection
if (mysqli_connect_errno()) {
  echo "Failed to connect to MySQL: " . mysqli_connect_error();
  exit();
}
Engineer Wajid Ali

Jawaban yang mirip dengan “mysqli Connect”

Pertanyaan yang mirip dengan “mysqli Connect”

Lebih banyak jawaban terkait untuk “mysqli Connect” di Sql

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya