|
|
|
|
![]() ![]() |
Sep 18 2004, 12:31 PM
Post
#1
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 12 Joined: 17-September 04 Member No.: 662 |
I want to know that is php supports MS Access databases. And could anyone told me the complete php installation.
I have little bit problem during installation. |
|
|
|
| Jhonny |
Sep 18 2004, 06:35 PM
Post
#2
|
|
Guests |
QUOTE(asimrsiddiqui @ Sep 18 2004, 08:31 AM) I want to know that is php supports MS Access databases. And could anyone told me the complete php installation. I have little bit problem during installation. If you are installing PHP why are you also looking for free hosting? About PHP installation problems, net is full of very detailed tutorials. And PHP.net also has mailing list. Post your problems there, they are expert. |
|
|
|
Sep 19 2004, 08:09 AM
Post
#3
|
|
|
Member - Active Contributor Group: Members Posts: 88 Joined: 4-September 04 From: Melbourne, Australia Member No.: 217 |
Yes, php supports ms access databases through ODBC. i've actually got a web server installed on my computer called 'Xitami' that i use to test PHP scripts. If you have any trouble with configuring php.ini, i'll send you my one and you can see what you have to edit in it
|
|
|
|
Sep 23 2004, 01:40 PM
Post
#4
|
|
|
Premium Member Group: [HOSTED] Posts: 336 Joined: 22-September 04 Member No.: 798 |
php can do odbc, but idon't think access is supported on astahost? not sure though.
try to install winlamp (winlamp.sourceforge.net) install mysql front (you can choose to put the installer on your desktop during the installation of winlamp it'll install php & mysql mysl front is a bit like access, so you'll have no problem using that one use mysql databases, they work better with php besides, you'll have less problem finding a webhost that uses mysql! |
|
|
|
Sep 23 2004, 02:20 PM
Post
#5
|
|
|
BUG.SWAT.PATROL Group: Members Posts: 626 Joined: 1-September 04 From: Auckland, New Zealand Member No.: 27 |
QUOTE(asimrsiddiqui @ Sep 19 2004, 01:31 AM) I want to know that is php supports MS Access databases. And could anyone told me the complete php installation. I have little bit problem during installation. Lets answer what you want, as I myself started off with MS Access for online databases because learning MySQL wouldn't have got my site online quicker, but now it's been converted over to MySQL. Hopefully you run your own web server, else web hosts would have alternative methods you can use. I wrote a tutorial on Installing your own web server for Windows in the HOWTOS AND TUTORIAL page. You will only have to do the Apache and PHP steps for what you need. We have to configure our PHP Scripts to use what is known as ODBC (Open DataBase Connectivity), You will also have to make sure that you have MDAC (Microsoft Data Access Components) installed, anything above Windows 2000 should have it installed. This setup refers to Windows XP Pro, since it's my Windows Operating System I run and is the only way I can explain it as it's been too long since I went back to a prior OS, although put me in front of one and I can do the same thing. You need to goto Control Panel | Administrative Tools | Data Sources (ODBC), then select the System DNS tab at the top and then click on Add. We need to add Microsoft Access Driver *.mdb and click Finish. Data Source Name is what is like our Database name, we use it in our connectivity. I called it MyDB. Next you have select your database file that you will be using with this connection. Click select and browse to your database on your computer, then click OK. You then click on the Advance tab and setup a username and password to connect to this database. For this I'll use root as username and passwordd as the password. Next I create a PHP script called dbcon.php, it's our database connection script, I include this file whenenver I need to connect to the database. HTML <?php $dbcon = odbc_connect('MyDB', 'root', 'password') or die("Error: Connection to Database Failed"); ?> And that's how we connect to the database, odbc_connect(); may look familiar, if you have seen mysql_connect(); then that is why. The commands are pretty much the same, yet you've got more control with mysql than MS Access. You should get the PHP Manual it will definitely help you out with other commands like odbc_exec(); etc. The commands are pretty much the same as MySQL so learning how to connect to MS Access database isn't a waste of time, you can convert over to MySQL easier this way. There's also software out there that can convert MS Access to MySQL and vice versa, so if you want to switch it's quite easy. Well if you require any more assistance, don't hesitate to ask. Cheers, MC |
|
|
|
Sep 28 2004, 11:28 AM
Post
#6
|
|
|
Member [ Level 2 ] Group: [HOSTED] Posts: 52 Joined: 5-September 04 Member No.: 256 |
I guess. . .it's supported.
you may using them with phpmyadmin, that all that I know. |
|
|
|
Oct 5 2004, 11:27 AM
Post
#7
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 18 Joined: 4-October 04 Member No.: 1,030 |
yes you can easily connect to any database management by using suitable odbc.
including oracle,ms-access,ms-exel,ms-foxpro,mysql etc, just configure the odbc and use the following code... <?php $dbcon = odbc_connect('database_name', 'user_name', 'password'); ?> this should work. if u r not sure whether it works just include as 'die' option with an error message. |
|
|
|
Oct 6 2004, 04:31 PM
Post
#8
|
|
|
death Group: Members Posts: 268 Joined: 8-September 04 Member No.: 384 |
yes it supported through odbc, for more info http://ph.php.net/manual/en/ref.mssql.php
|
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 5th September 2008 - 06:24 AM |