Ejemplo 1: php mysqli connect err0r
<?php
$link = mysqli_connect('localhost', 'fake_user', 'my_password', 'my_db');
if (!$link) {
die('Connect Error: ' . mysqli_connect_error());
}
?>
//The mysqli_connect_error() will return a list of connection error(s) if the connection to the db fails
Ejemplo 2: error de conexión de mysqli
<?php
$conn=mysqli_connect("localhost","username","password","database_name");
?>
This code will connect with database 'database_name' while $conn is connection name
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)