It is currently Thu Mar 28, 2024 9:31 am


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  
 
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