Código PHP:
<?php
require_once("adodb/adodb.inc.php");
$tnsName="serv";
$usuario = "web";
$contrasenna = "User";
$db = NewADOConnection("mssql");
$db->Connect($tnsName,$usuario, $contrasenna,'b');
$db->debug = true;
$rs = $db->Execute("select * from tabla");
while ($arr = $rs->fetchRow()) {
print "<pre>";
print_r($rs->GetRows());
print "</pre>";
}
?>
X-Powered-By: PHP/5.1.1
Content-type: text/html
-----
(mssql): select * from tabla
-----
ADOConnection._Execute(select * from tabla, false)% line 891, file: C:\AppServ\www\nuevoSistema\datos\conADO\adodb\ado db.inc.php
ADOConnection.Execute(select * from tabla)% line 10, file: C:\AppServ\www\nuevoSistema\datos\conADO\pruebaADO .php
include(C:\AppServ\www\nuevoSistema\datos\conADO\p ruebaADO.php)% line 1, file: C:\Archivos de programa\Zend\ZendStudio-5.2.0\bin\php5\dummy.php
muchas gracias desde ya.