Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/05/2010, 10:06
sandramnr
 
Fecha de Ingreso: mayo-2010
Mensajes: 29
Antigüedad: 14 años, 10 meses
Puntos: 1
Respuesta: mysql_connect

Buenas te pongo como hago yo la conexión y no me falla. Espero que te sirva

$sgbd = 'mysqli';
$server = 'localhost';
$user = 'root';
$password = '';
$database = 'nombreBaseDato';

if( !is_object($con) )
{

$ADODB_FETCH_MODE = ADODB_FETCH_NUM;
$ADODB_COUNTRECS = false;

$con = ADONewConnection($sgbd);
$con->debug = true;
$con->PConnect($server,$user,$password,$database);

}