Is it possible to connect to a Microsoft Access database
without a DSN? If so, how??

Answer Posted / ghan shyam

yes it is posible to connect ms access database without dsn

you have to provide Driver for database and database path in odbc_connect function. like :
odbc_connect(DRIVER={Microsoft Access Driver
(*.mdb)}; DBQ="{database path}", "{db username if any}"
, "{db_password if any}") or die("could not connect to database");

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is php namespace?

541


Is age an interval or ratio?

549


Does mysql need php?

452


What is difference between html and php?

501


Why use php artisan serve?

501






Is false empty php?

550


How do I display php errors?

518


How do you clear environment variables?

536


Is apache needed for php?

506


Why session is required?

519


How do you sort an array in php?

527


What is printf in php?

527


Why does sql injection happen?

569


How to remove leading and trailing spaces from user input values in php?

544


What is regular expression in php?

535