Answers for "database comnnection in php code"

PHP
1

$conn php

<?php
    $user = "username";
    $pass = "password";
    $host = "host";
    $dbdb = "database";
    
$conn = new mysqli($host, $user, $pass, $dbdb);
   if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
} 
?>
Posted by: Guest on December-23-2020

Code answers related to "database comnnection in php code"

Browse Popular Code Answers by Language