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 create a table using php?

1010


How can we encrypt the password using php?

1035


How do you check is php not empty?

952


Write syntax to open a file in php?

993


What is difference between isset and empty in php?

952


Do you know what's the difference between __sleep and __wakeup?

950


Tell me how to strip whitespace (or other characters) from the beginning and end of a string?

913


What is the main difference between require() and include()?

903


Is json a string php?

911


Explain Type hinting in PHP?

982


How can i execute PHP File using Command Line?

924


What is the difference between client-side and server-side programming?

1009


Describe which programming language does php parallel to?

912


Explain mail function in PHP with syntax?

958


How to declare an array in php?

1023