嗨即時通訊使用xampp &我想連接使用php。找不到phpmyadmin主機!
<?php $server = localhost; $username = root; $password = ******;?>
$sql_connections = mysql_connect("$server, $username, $password") or die(mysql_error());
Warning: mysql_connect() [function.mysql-connect]: php_network_getaddresses: getaddrinfo failed: Host desconocido. in C:\xampp\htdocs\Database Manager\admin\sql_functions.php on line 17
Warning: mysql_connect() [function.mysql-connect]: [2002] php_network_getaddresses: getaddrinfo failed: Host desconocido. (trying to connect via tcp://localhost, root, usd27498:3306) in C:\xampp\htdocs\Database Manager\admin\sql_functions.php on line 17
什麼地址是'$ server'? – 2011-03-06 07:23:07
地址是localhost – NSanjay 2011-03-06 07:24:39