It is currently Sun Nov 27, 2022 12:08 pm


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: For MySQL Database what server name freehostia.com is using?
PostPosted: Fri Sep 02, 2011 3:35 am 
Newbie
Newbie

Joined: Fri Sep 02, 2011 2:12 am
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ]  Moderators: Moderators, Support Team

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Hosting | Domains | Servers | Extras | Order | Support | Contacts | FreeHostia © 2011