Answers for "mysqli connect error"


php mysqli connect err0r

$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
Posted by: Guest on February-20-2020

mysqli connect error


This code will connect with database 'database_name' while $conn is connection name
Posted by: Guest on October-31-2020

Browse Popular Code Answers by Language