Hola te un problema a la hora de conectarme con php y mysql
escribi un programa de prueba en php6
$test=mysql_connect("localhost","root","920340")
If ($test) {
echo "conectado ok";
}
else {
echo "error de conexion";
}
a la hora de correr el codigo me sale el siguiente mensaje en el navegador
Warning: mysql_connect() [function.mysql-connect]: [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) in C:\appserv\www\prueba_conexion.php on line 2
Warning: mysql_connect() [function.mysql-connect]: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\appserv\www\prueba_conexion.php on line 2
Error