It is currently Fri Jul 28, 2017 3:00 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: Can't connect my site?
PostPosted: Mon Sep 05, 2011 7:04 pm 
Newbie
Newbie

Joined: Mon Sep 05, 2011 7:00 pm
Posts: 1
Well I got this code:
Code:
<?
$db = mysql_connect("localhost", "database_username", "database_password") or die("Could not connect.");
if(!$db)
   die("no db");
if(!mysql_select_db("databasename",$db))
   die("No database selected.");
$youremail="From: you@youremail.com";
$path="path/to/game";
?>


I changed it to:
Code:
<?
$db = mysql_connect("sql.freehostia.com", "tayonu_connect", "mypasswordofmysql") or die("Could not connect.");
if(!$db)
   die("no db");
if(!mysql_select_db("tayonu_connect",$db))
   die("No database selected.");
$youremail="From: myemail@email.com";
$path="";
?>


But it says : "Could not connect" [To see it: www.trolledby.com]


Top
 Profile  
 
 Post subject: Re: Can't connect my site?
PostPosted: Tue Sep 06, 2011 12:50 pm 
Site Admin

Joined: Sun Jun 12, 2011 3:37 pm
Posts: 12
Hello,

In order to be able to properly assist you on this matter, please open a new ticket from the Help section of your control panel. We will then provide you with the correct details to use, in order to connect your script. Thank you.

Best Regards,
Bob Dean


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

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:  
cron
Hosting | Domains | Servers | Extras | Order | Support | Contacts | FreeHostia © 2011