Display an Access database

Display an Access database, haven’t been able to check this but I’m sure this depends on the version of Access you have installed

<?php
$odbcdsn = “sampledb”;
$odbcuser = “”;
$odbcpass = “”;
$sqlquery = “SELECT * FROM tblsample”;
if(!($odbcdb = odbc_connect($odbcdsn , $odbcuser , $odbcpass)))
die(“cant open the dsn”);
if(!($odbcrs = odbc_do($odbcdb , $sqlquery)))
die(“cannot execute sql query”);
odbc_result_all($odbcrs);
?>

LEAVE A REPLY

Please enter your comment!
Please enter your name here

*