File manager - Edit - /home/custbahd/irungikitchen.com/admin1/db/config.php
Back
<?php $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)); ?> <?php $host="localhost";//host name $username="custbahd_customassistname"; //database username $password="Rwatangabo1son";//database word $db_name="custbahd_irungi";//database name $tbl_name="checkout"; //table name $con=mysqli_connect("$host", "$username", "$password","$db_name")or die("cannot connect");//connection string ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Generation time: 1.4 |
proxy
|
phpinfo
|
Settings