Тези грешки ме побъркаха :(

gogato93

Registered
Ето го кода:
<?
$host = "localhost";
$user = "funny4pl_funny4p";
$pass = "моята парола аз си я бях написал правилно";
$db = "funny4pl_funny";
$db_conn = mysql_connect("$host", "$dbusername", "$dbpassword")
or die("unable to connect to the database");
$conn=mysql_select_db("$db", $db_conn) or die("unable to select the database");
mysql_query("SET NAMES cp1251");
?>
Ето и грешката:



Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'funny4pl'@'localhost' (using password: NO) in /home/funny4pl/public_html/telephone/conn.php on line 6
unable to connect to the database
 
Код:
<? 
$host = "localhost"; 
$user = "funny4pl_funny4p"; 
$pass = "моята парола аз си я бях написал правилно"; 
$db = "funny4pl_funny"; 
$db_conn = mysql_connect($host, $user, $pass) 
or die("unable to connect to the database"); 
$conn=mysql_select_db($db, $db_conn) or die("unable to select the database"); 
mysql_query("SET NAMES cp1251"); 
?>
 

Back
Горе