Problem of connection to the database with php code

Website URL

https://flygen.nl/

Error Message

I didn’t find an error message but there is one but I don’t know where to find it

Other Information

Read this

2 Likes

That’s because in the } catch(Exception $e) { block, you first do an exit() with no output, and then do a die() that shows the error message. But exit() already stops the script, so the die() statement is never reached.

Simply remove the exit() line and you’ll see the error message.

That said, the issue is very obvious though: you’ve enter the IP address of our phpMyAdmin server as the database hostname, not the actual hostname of the database server. Please find the database hostname to use in the client area or control panel.

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.