Access Denied or Http Error 500

Hi, i just created a Database and a Table here and a simple php file.
When i go to http://for-inf-test.rf.gd/search1.php it says “Site dont working” Http Error 500
When i go to http://for-inf-test.rf.gd/search2.php it says “Access denied for user”

the same script works fine at at a database here (other website from a friend)

For the HTTP ERROR 500: Docs - InfinityFree Forum
For the Access Denied error: you’re not using the right password. You need to use the control panel password you can find in your client area.