Hola a todos,
No logro que esto funcione, trabajo en local con Win XP profesional. Intento acceder a una base de datos Access con el siguiente codigo:
<?php
$db = 'C:\\InetPub\\wwwroot\\Gestion\\database\\datos.md b';
$conn = new COM('ADODB.Connection') or exit('Cannot start ADO.');
// Two ways to connect. Choose one.
//$conn->Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=$db") or exit('Cannot open with Jet.');
$conn->Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=$db") or exit('Cannot open with driver.');
$sql = 'SELECT id, idTable, idField FROM tableFields ORDER BY idTable';
$rs = $conn->Execute($sql);
?>
<table>
<tr>
<th>Id</th>
<th>Id Table</th>
<th>Id Field</th>
</tr>
<?php while (!$rs->EOF) { ?>
<tr>
<td><?php echo $rs->Fields['id']->Value ?></td>
<td><?php echo $rs->Fields['idTable']->Value ?></td>
<td><?php echo $rs->Fields['idField']->Value ?></td>
</tr>
<?php $rs->MoveNext() ?>
<?php } ?>
</table>
<?php
$rs->Close();
$conn->Close();
$rs = null;
$conn = null;
?>
Y en los dos tipos de conexión me dice que "'Cannot open with Jet o driver".
Mi pregunta es si debo instalar esos drivers o configurar algo en mi pc.
Gracias de antemano.