Board index   FAQ   Search  
Register  Login
Board index php forum :: Database mySQL & php coding

How can I write in a not localhost mysql database

Codes here !

Moderators: macek, egami, gesf

How can I write in a not localhost mysql database

Postby bram » Fri Jan 03, 2003 6:20 am

Hey,

I want to write data in a mysql database on another server but don't now how I can do this because I write always data localhost.

$db=mysql_connect("localhost",$user,$pass);

must i set the webadres of the server where now is localhost?

Must i make changes in the setting of my database on the other server to accept not localhost connection. How can I do this with phpmyadmin?

I hope someone can help me with this.

kind regards,

bram
bram
New php-forum User
New php-forum User
 
Posts: 3
Joined: Thu Jan 02, 2003 1:30 am

mysql - connect

Postby jemy » Fri Jan 03, 2003 7:26 am

may you have a look at the following page:
http://fooassociates.com/phpfer/html/rn41re774.html

regards
jemy
jemy
New php-forum User
New php-forum User
 
Posts: 6
Joined: Thu Jan 02, 2003 5:27 am
Location: Munich / Germany


Return to mySQL & php coding

Who is online

Users browsing this forum: Bing [Bot] and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron