Ver Mensaje Individual
  #10 (permalink)  
Antiguo 30/04/2010, 06:56
xrizaly
 
Fecha de Ingreso: abril-2010
Mensajes: 69
Antigüedad: 14 años, 1 mes
Puntos: 0
Respuesta: Conectar php con MySQL

en algo te puede ayudar esto

Código PHP:
Ver original
  1. <?php
  2. # FileName="Connection_php_mysql.htm"
  3. # Type="MYSQL"
  4. # HTTP="true"
  5. $hostname = "localhost";
  6. $database= "nombre BD";
  7. $username = "root";
  8. $password = ""; //si la tuviera
  9. $fich = mysql_pconnect($hostname_NombreBD, $username_BD, $password_BD) or trigger_error(mysql_error(),E_USER_ERROR);
  10. ?>