I registered on 000webhost and I can connect to mysql db pages that are uploaded there via:
mysql_connect('localhost', 'user', 'pass') or die('Could not connect to database');
mysql_select_db('name') or die('Could not select database');
But it seems it does not allow connecting remotely.
Is there any free host which has mysql db and allows remote connections ?