All pages in my website with a mysql connection don’t load, only the navbar added with an include does. The weirdest part is that my site works perfectly on my own computer’s local server.
Any help would be greatly appreciated.
Here is my code for one of the pages incase I messed something up.
Please note that the MySQL connection string is sensitive to whitespace. So if you use mysql:host = sql123.epizy.com or mysql:host=sql123.epizy.com, those actually mean different things.
So what I think is happening is that your connection string is being ignored entirely and you’re connecting with all default values. This is usually hostname localhost with username root and no password. On your own computer, these default settings also work and so does the site, but on our hosting the issue becomes apparent.
Please try removing all the spaces from the connection string. If the provided parameters are correct, it should solve the issue.