Cannot select database


#1

I cant select my db and it always gives me the second error “Database does not exists.”.What am i doing wrong.Please help.here is my code.

<?php mysqli_connect("mysql4.gear.host", "geldcrmdb", "**********","geldcrmdb") or die("Cannot connect to host"); mysqli_select_db("geldcrmdb") or die("Database does not exists."); ?>

#2

Nvm seem like using mysqli didnt work well.heres the code that works if somebody needs it

<?php $teste=mysql_connect("mysql4.gear.host", "geldcrmdb", "GeldCrm123456789!","geldcrmdb") or die("Cannot connect to host"); mysql_select_db("geldcrmdb",$teste) or die("Database does not exists."); ?>