Initial work on switching companies, added error if not able to connect to database

This commit is contained in:
johnny@pittpc.com
2020-04-04 20:55:06 -04:00
parent 7a0ef334a3
commit a14ec04d5a
3 changed files with 15 additions and 3 deletions

View File

@@ -98,11 +98,11 @@ if(isset($_POST['add_database'])){
fwrite($myfile, $txt);
$txt = "\$mysqli = mysqli_connect(\$dbhost, \$dbusername, \$dbpassword, \$database);\n\n";
$txt = "\$mysqli = mysqli_connect(\$dbhost, \$dbusername, \$dbpassword, \$database) or die('Database Connection Failed');\n\n";
fwrite($myfile, $txt);
$txt = "\$config_app_name = 'IT CRM';\n";
$txt = "\$config_app_name = 'ITFlow';\n";
fwrite($myfile, $txt);