$con = mysql_connect($host, $user, $pass) or die (mysql_error()); mysql_select_db($dbase, $con);
and this is the error that i got
Warning: mysql_connect() [function.mysql-connect]: php_network_getaddresses: getaddrinfo failed: Host desconocido. in C:\server\Lesson 1\admin\configure.php on line 12
Warning: mysql_connect() [function.mysql-connect]: [2002] php_network_getaddresses: getaddrinfo failed: Host desconocido. (trying to connect via tcp://localhostroot:3306) in C:\server\Lesson 1\admin\configure.php on line 12
Warning: mysql_connect() [function.mysql-connect]: php_network_getaddresses: getaddrinfo failed: Host desconocido. in C:\server\Lesson 1\admin\configure.php on line 12
Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in C:\server\Lesson 1\admin\configure.php on line 13
the error is the host and i try writting 127.0.0.1 nothing
i'm using windows 7 and like everyone i got troubles changing the host 127.0.0.1 to localhost