Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'Sql120640'@'31.11.35.144' (using password: YES) in D:\inetpub\webs\poochiepoohit\utility\database.php on line 11

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in D:\inetpub\webs\poochiepoohit\utility\database.php on line 12

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in D:\inetpub\webs\poochiepoohit\utility\database.php on line 14

Warning: mysql_affected_rows() [function.mysql-affected-rows]: A link to the server could not be established in D:\inetpub\webs\poochiepoohit\utility\database.php on line 15
y

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\inetpub\webs\poochiepoohit\utility\database.php on line 16


Come si fa?

$b=1;
$conn=mysql_connect($db_serv,$db_usern,$db_pass);
$db1 = mysql_select_db("$db_nome" ,$conn);
$str=("SELECT * FROM 1faqcantanti WHERE id='$b' ");
$dati=mysql_query(($str),$conn);
$y=mysql_affected_rows();echo"y $y
";
while($contdati= mysql_fetch_array($dati)){
echo$contdati[r];echo"
";}