PHP/MySQL
Public forum
Unmoderated forum

Forum administrated by php4u
Experts talk here !
Share your knowledge on PHP scripting and MySQL databases administration with a large community of expert Webmasters. The Webmaster PHP forums is THE place where coders chat!
New messages 1
Total messages 12843
Subject Can i retreive infomation from the database from another website

Author:  jamesneal90
Date:    12-01-2009 19:49

im designing a site and i want free mysql hosting. i checked through this and im having trouble trying to connect to the database from another site.

the usual PHP code to connect to a database would be:

// set database server access variables:
$host = "localhost";
$user = "root";
$pass = "password";
$db = "somedatabase";

// open connection
$connection = mysql_connect($host, $user, $pass) or die ("Unable to connect!");

// select database
mysql_select_db($db) or die ("Unable to select database!");


how would i change this to connect for my tripod database remotly. i have a good understanding of logic but i am new to php can any one help?

PS excuse my really poor spelling






    Subject Author Date
Can i retreive infomation from the database from another website  
jamesneal90 12-01-2009 19:49
RE: Can i retreive infomation from the database from another website  
brisray 17-01-2009 00:54

Subject:

Message:

Include original message   Cancel