Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / binu. v. pillai

Yes, we can
<?php

//Connect access database

$con=odbc_connect("DRIVER={Microsoft Access Driver
(*.mdb)}; DBQ=" . str_replace("/", "\\", $_SERVER
["DOCUMENT_ROOT"]) . "\foldername\dbname.mdb", "db_username"
, "db_password")or die("could'nt connect database");

if (!$con) {
die('Could not connect: ' . odbc_error());
}

?>

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to repeat a string to a specific number of times in php?

975


How to redirect a page in php?

1011


What are the advantages of php?

1011


What is difference between mysqli and mysql?

1057


When to use inquire vs enquire?

976


Can I include php in javascript?

1063


What is nan value?

920


Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?

1135


How we load all classes that placed in different directory in one php file , means how to do auto load classes.

977


What is difference between web service and api?

1033


Differences between get and post methods?

1031


What is the difference between explode() and split() functions?

1039


How is a constant defined in a PHP script?

1024


What is csrf token and how it works?

996


Does empty check for null?

954