HTTP 500 ERROR while connecting database for first time

Hi , I have my database ready and website too. But I am not able to connect it through PHP. It shows request cant be handled error (HTTP 500 error). Here is the script which i am using in my config.php :

$host =“localhost” // change to your host
$username =“id102179_admin” // change to your mysql user name by default root
$pass ="*****" //add password if any
mysql_connect($host,$username,$pass) //don’t change the sequence
mysql_select(“id102179_pointblank360”)

Please, Let me know if there is any problem with the script or am i missing some settings which needs to be done on 000webhost server or if my machine should also have to be php enabled?

most likely it is due to php version.

mysql_connect is very old and deprecated function. Check this tutorial: