LeonLatex Posted July 8, 2022 Share Posted July 8, 2022 Stupid things might happen when you have been awake for almost three days. In the category "things to avoid to do". This is NOT from the last 14 days problems. Find one problem 😂😂😂👍👍👍 Cut out from the db_inc.php file: <?php require_once $ROOT.'db_inc.php'; try { $pdo = new PDO('mysql:host=**********; dbname=**********; charset=utf8' , '**********'); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $output = 'Database Connection Etablished.'; } catch (PDOException $e) { $output = 'Unable to connect to the databese server: ' . $e; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/315013-stupid-things/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.