To whom it may concern,
(1) I have created MySQL database using phpMyAdmin at freehostia.com MySQL database and succeded in creating 3 - Tables but now using php code I want to access that database. In the Book: "Teach Yourself Web Design Vissualy" Auther "Rob Huddleston" In page 303 of the said book he has used the following php code for localhost:-
Code:
<?php
mysql_connect('localhost', 'root');
mysql_select_db('tyvdata'); // 'tyvdata' is the name of the MySQL database
?>
(2) - My question is:- In place of 'localhost' (server) in freehista.com (which is a remote server) what server name I should use to 'connect' to my database?
Kuljit Nikhanj