Ver Mensaje Individual
  #3 (permalink)  
Antiguo 19/04/2007, 09:53
Avatar de moron
moron
 
Fecha de Ingreso: mayo-2004
Mensajes: 972
Antigüedad: 20 años
Puntos: 2
Re: error conectando a mssql

el objeto lo creo así:

Código PHP:
function conectar()
    {
        require_once(
"../datos/adodb/adodb.inc.php");
        
$this->adoConnection=NewADOConnection($this->provider);
        
$this->adoConnection->Connect($this->serverName,$this->usuario$this->password,$this->baseDatos);
        
$this->adoConnection->debug true;
        
$rs $this->adoConnection->Execute("select * from tabla where id < 20 ");

        while (
$arr $rs->fetchRow())
        {
            
$this->resultado=$rs->GetRows();
                        
        }

    }
    
    public function 
darResultado()
    {
        return 
$this->resultado;
    } 
algún moderador generoso, podría pasar este post a php general pano no redundar?, gracias