note 126747 deleted from function.mysqli-connect by cmb
| From: | cmb@php.net | Date: | Tue, 04 Jan 2022 14:17:05 +0000 |
| Subject: | note 126747 deleted from function.mysqli-connect by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-217468@lists.php.net to get a copy of this message | ||
Note Submitter: omkargharat022 at gmail dot com
----
<?php
// connecting to database
$servername = "localhost"; // default servername for pHpMyAdmin
$username = "root"; // default username for pHpMyAdmin
$password = ""; // default password for pHpMyAdmin
// create a connection
$connection = mysqli_connect($servername, $username, $password);
if (!$connection ){
die("Connection failed <br>" .mysqli_error($connection));
}else{
echo "Connection is successfull";
}
?>