New messages 1
Total messages 12843
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 | ||||||||||||||||||||||
|
||||||||||||||||||||||||