Yamba
19-09-2006, 05:22 PM
Okay this is my problem I created a SQL database for my Radio Pannel and when I go to the intsaller this appears:
Warning: mysql_connect() [function.mysql-connect (http://www.habbostyle.net/djp/staff/install/function.mysql-connect)]: Host '67.18.208.126' is blocked because of many connection errors. Unblock with 'mysqladmin flush-hosts' in /home/habbosty/public_html/djp/staff/dj/sql.php on line 14
Couldn't select database.
I have to edit a file called sql.php which is like this:
<?php
//MySQL Hostname
$hostname = '';
//MySQL Database Username
$sqlname = "'';
//MySQL Database Password
$sqlpass = '';
//MySQL Database Name
$mysqldb = '';
$connection = mysql_connect($hostname, $sqlname, $sqlpass) or die("Couldn't select database.");
$db = mysql_select_db($mysqldb, $connection) or die("Couldn't select database.");
?>
Here are some connection strings I found on Cpanel:
Connection StringsPerl$dbh = DBI->connect("DBI:mysql:habbosty_djpanel:localhost","habbosty_dj","<PASSWORD HERE>");PHP$dbh=mysql_connect ("localhost", "habbosty_dj", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("habbosty_djpanel");
Can you use these to tell me what I have to place in the blank parts of the sql.php? Or what am I doing wrong?
Warning: mysql_connect() [function.mysql-connect (http://www.habbostyle.net/djp/staff/install/function.mysql-connect)]: Host '67.18.208.126' is blocked because of many connection errors. Unblock with 'mysqladmin flush-hosts' in /home/habbosty/public_html/djp/staff/dj/sql.php on line 14
Couldn't select database.
I have to edit a file called sql.php which is like this:
<?php
//MySQL Hostname
$hostname = '';
//MySQL Database Username
$sqlname = "'';
//MySQL Database Password
$sqlpass = '';
//MySQL Database Name
$mysqldb = '';
$connection = mysql_connect($hostname, $sqlname, $sqlpass) or die("Couldn't select database.");
$db = mysql_select_db($mysqldb, $connection) or die("Couldn't select database.");
?>
Here are some connection strings I found on Cpanel:
Connection StringsPerl$dbh = DBI->connect("DBI:mysql:habbosty_djpanel:localhost","habbosty_dj","<PASSWORD HERE>");PHP$dbh=mysql_connect ("localhost", "habbosty_dj", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("habbosty_djpanel");
Can you use these to tell me what I have to place in the blank parts of the sql.php? Or what am I doing wrong?