File manager - Edit - /home/custbahd/irungikitchen.com/admin/db/config.php
Back
<?php /* // mysql_connect("database-host", "username", "password") $conn = mysql_connect("localhost","custbahd_customassistname","custbahd_customassistname") or die("cannot connected"); // mysql_select_db("database-name", "connection-link-identifier") @mysql_select_db("test",$conn); */ /** * mysql_connect is deprecated * using mysqli_connect instead */ $databaseHost = 'localhost'; $databaseName = 'custbahd_irungi'; $databaseUsername = 'custbahd_customassistname'; $databasePassword = 'Rwatangabo1son'; $mysqli = mysqli_connect($databaseHost, $databaseUsername, $databasePassword, $databaseName); ?> <?php /* Database credentials. Assuming you are running MySQL server with default setting (user 'custbahd_customassistname' with no password) */ define('DB_SERVER', 'localhost'); define('DB_USERNAME', 'custbahd_customassistname'); define('DB_PASSWORD', 'Rwatangabo1son'); define('DB_NAME', 'custbahd_irungi'); /* Attempt to connect to MySQL database */ $link = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME); // Check connection if($link === false){ die("ERROR: Could not connect. " . mysqli_connect_error()); } ?> <?php //servername $servername = "localhost"; //username $username = "custbahd_customassistname"; //empty password $password = "Rwatangabo1son"; //database is the database name $dbname = "custbahd_irungi"; // Create connection by passing these connection parameters $conn = new mysqli($servername, $username, $password, $dbname); ?> <?php $db = mysqli_connect('localhost', 'custbahd_customassistname', 'Rwatangabo1son') or die ('Unable to connect. Check your connection parameters.'); mysqli_select_db($db, 'custbahd_irungi' ) or die(mysqli_error($db)); ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Generation time: 2.3 |
proxy
|
phpinfo
|
Settings