DSN less connection in mac
Posted: Sun Aug 28, 2011 12:01 pm
Can i use microsoft access DB in mac?
In windows i set up dns to point to the *.mdb file then i used the following code which worked fine
<!--$odbc = odbc_connect ('logistics', 'root', '') or die('Could Not Connect to ODBC Database!');-->
so now i have a mac book and having set up Mamp and php i suddenly realise i cant run the above
code because there is no dsn. ive seen something like the following though but not sure .....
$connection = odbc_connect("Driver={Microsoft Access Driver (*.mdb)};Dbq=$mdbFilename", $user, $password);
Is there a way to do this in mac??????
In windows i set up dns to point to the *.mdb file then i used the following code which worked fine
<!--$odbc = odbc_connect ('logistics', 'root', '') or die('Could Not Connect to ODBC Database!');-->
so now i have a mac book and having set up Mamp and php i suddenly realise i cant run the above
code because there is no dsn. ive seen something like the following though but not sure .....
$connection = odbc_connect("Driver={Microsoft Access Driver (*.mdb)};Dbq=$mdbFilename", $user, $password);
Is there a way to do this in mac??????