mysql_connect - need other way to connect

Hi,

I can’t connect to database with mysql_connect because my hosting provider denied this. On this server I can connect only to localhost but my database is on other machine.

So how can I connect without mysql_connect?

Realistically you don’t have many options. You might be able to connect with PHP odbc functions depending on server setups, but that’s about it.

adodb

Why would any host deny mysql_connect?!

The way I understand it, they only allow it to connect to localhost. I assume that’s where their own mysql database runs :slight_smile: