Thanks Richie & Cheese. As Mike said on the other thread:
yes, you can supply any server you want to mysql_connect(). be advised that some commercial hosting companies (like mine) do not allow remote database connections, meaning you can only connect to their database server from their webserver.
Maybe that's the problem with me, I've tried everyway but can't make connection. I'll paste the email I got from the freehost where my database is, here:
username: myusername
password: password
database name: dbname
database host: freeownhost.com
database port: 5555
now can anyone write me the mysql_connect() using the above data? BTW what's the role of Port?