Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
May 23, 2006, 8:09 pm
rate this thread
I am trying to connect to a remote mysql server through php. Here's the
mysql_connect("my.hostname.edu", "username", "password") or die
mysql_select_db("db_name") or die ("unable to select
$r1 = mysql_query('SELECT * FROM table') ;
Using the mysql prompt on the remote server, the mysql -h -u -p works
just fine with the parameters i've specified here. According to the
user table I have the proper permissions. I just can't figure out what
could be preventing the connection here, although I am no expert...can
BTW, I am using PHP 4.4.1 and mysql 5.0.
Thanks in advance...
- » Americanas.com SALDO de TVs Com at 80% de Desconto (29798)
- — Newest thread in » MySQL Database Forum