FreeHostia Forums

For MySQL Database what server name is using?
Page 1 of 1

Author:  coolnik [ Fri Sep 02, 2011 3:35 am ]
Post subject:  For MySQL Database what server name is using?

To whom it may concern,

(1) I have created MySQL database using phpMyAdmin at 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:-


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 (which is a remote server) what server name I should use to 'connect' to my database?

Kuljit Nikhanj

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group