Answers for "mysql_connect($this->host,$this->dbname,$this->username,$this->password)"

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 "mysql_connect($this->host,$this->dbname,$this->username,$this->password)"

Browse Popular Code Answers by Language