Custom php page database connection
Posted: 2025-02-03 05:35
I am trying to use the Appgini php functions to connect to my MySQL database.
Here is they code I am using to retrieve the connection settings for the database. I don't get any errors just nothing appears on the screen. Any help would be appreciated!
TD
Here is they code I am using to retrieve the connection settings for the database. I don't get any errors just nothing appears on the screen. Any help would be appreciated!
TD
Code: Select all
<?php
include('../lib.php');
$db_host = config('$dbServer');
$db_user = config('$dbUsername');
$db_pwd = config('$dbPassword');
$db_dbase = config('$dbDatabase');
echo $db_host.'<br>';
echo $db_user.'<br>';
echo $db_pwd.'<br>';
echo $db_dbase;
?>