FreeHostia Forums
http://forum.freehostia.com/

Can't connect my site?
http://forum.freehostia.com/viewtopic.php?f=6&t=41440
Page 1 of 1

Author:  lawonama [ Mon Sep 05, 2011 7:04 pm ]
Post subject:  Can't connect my site?

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]

Author:  boburko [ Tue Sep 06, 2011 12:50 pm ]
Post subject:  Re: Can't connect my site?

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

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/