Wenn ich folgenden Code ausfuehre:
Dann erhalte ich folgende Fehlermeldungen:
Was mach ich falsch???
PHP-Code:
mysql_close($conn);
$cserver = "www.bla.de";
$cusername = "***";
$cpassword = "***";
$cdbname = "***";
$connect = mysql_connect($cserver,$cusername,$cpassword);
$cdb = mysql_select_db($cdbname);
$query=mysql_query("SELECT points FROM global_points WHERE username='$user_name'");
$res=mysql_fetch_array($query);
mysql_close($connect);
$sql_server = "";
$sql_db = "***";
$sql_user = "***";
$sql_pw = "***";
$conn=mysql_connect($sql_server, $sql_user, $sql_pw);
mysql_select_db($sql_db, $conn);
Code:
Warning: Supplied argument is not a valid MySQL-Link resource in /kunden/solanki.ch/htdocs/temp/functions.php on line 348 Warning: Host 'kunden.pearsoft.ch' is not allowed to connect to this MySQL server in /kunden/solanki.ch/htdocs/temp/functions.php on line 353 Warning: MySQL Connection Failed: Host 'kunden.pearsoft.ch' is not allowed to connect to this MySQL server in /kunden/solanki.ch/htdocs/temp/functions.php on line 353 Warning: Supplied argument is not a valid MySQL result resource in /kunden/solanki.ch/htdocs/temp/functions.php on line 358 Warning: Supplied argument is not a valid MySQL-Link resource in /kunden/solanki.ch/htdocs/temp/functions.php on line 360
Kommentar