How to connect to db from 000webhost - help

hey!
I created a database in 000webhost andI was trying to connect it but I failed
this is what I wrote:
$con = mysql_connect(‘localhost’,‘id******_noado6’,’*********’);
mysql_select_db(‘id******_vtown’,$con);
what’s wrong with this code? please help

check this tutorial