“MySQLI Connect” Code-Antworten

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

Ähnliche Antworten wie “MySQLI Connect”

Fragen ähnlich wie “MySQLI Connect”

Weitere verwandte Antworten zu “MySQLI Connect” auf Sql

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen