Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Other Information
This is an exam and the site worked earlier, but when we were going to show it to the professor it didnt work. What can the issue be and how can we resolve this?
Yes, I tried now. And got this message " Fatal error : Uncaught mysqli_sql_exception: Connection timed out in /home/vol3_8/infinityfree.com/if0_36277689/htdocs/precisiondetailing_endre.php:100 Stack trace: #0 /home/vol3_8/infinityfree.com/if0_36277689/htdocs/precisiondetailing_endre.php(100): mysqli_connect(‘if0_36277689_pr…’, ‘if0_36277689’, Object(SensitiveParameterValue), ‘sql109.infinity…’) #1 {main} thrown in /home/vol3_8/infinityfree.com/if0_36277689/htdocs/precisiondetailing_endre.php on line 100"
Fatal error : Uncaught mysqli_sql_exception: Connection timed out in /home/vol3_8/infinityfree.com/if0_36277689/htdocs/precisiondetailing_endre.php:101 Stack trace: #0 /home/vol3_8/infinityfree.com/if0_36277689/htdocs/precisiondetailing_endre.php(101): mysqli_connect(‘if0_36277689_pr…’, ‘if0_36277689’, Object(SensitiveParameterValue), ‘sql109.infinity…’) #1 {main} thrown in /home/vol3_8/infinityfree.com/if0_36277689/htdocs/precisiondetailing_endre.php on line 101
Other Information
Everything looks good and I have seen through the creditensials over 10 times. Everything is put in right. It worked at first and then stopped working. Any idea why? This is an exam btw.
The correct order of arguments for the function is mysqli_connect($hostname, $username, $password, $database). You put the database name first and the hostname last. If you put the arguments in the right order, it should work.
Because of course, you will not be able to connect to a host that has the database name as hostname.