Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Is php supports MS Access, Ms Access Database
asimrsiddiqui
post Sep 18 2004, 12:31 PM
Post #1


Newbie [ Level 2 ]
Group Icon

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.
Go to the top of the page
 
+Quote Post
Jhonny
post 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.
Go to the top of the page
 
+Quote Post
daniel15
post Sep 19 2004, 08:09 AM
Post #3


Member - Active Contributor
Group Icon

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 wink.gif
Go to the top of the page
 
+Quote Post
marijnnn
post Sep 23 2004, 01:40 PM
Post #4


Premium Member
Group Icon

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!
Go to the top of the page
 
+Quote Post
mastercomputers
post Sep 23 2004, 02:20 PM
Post #5


BUG.SWAT.PATROL
Group Icon

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
Go to the top of the page
 
+Quote Post
kilz
post Sep 28 2004, 11:28 AM
Post #6


Member [ Level 2 ]
Group Icon

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.
Go to the top of the page
 
+Quote Post
sha
post Oct 5 2004, 11:27 AM
Post #7


Newbie [ Level 2 ]
Group Icon

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.
Go to the top of the page
 
+Quote Post
r3d
post Oct 6 2004, 04:31 PM
Post #8


death
Group Icon

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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Creating A Game In Rpg Maker 2000/2003(18)
  2. Mirror My MySQL Database To Another Mysql Server(4)
  3. Sharing Files In Windows Xp Home(15)
  4. How To: Connect, Read, Write, Close A Database(3)
  5. Need Help With A PHP - MySQL Registration Script(13)
  6. VB6-MS Access Question(8)
  7. MySQL Output Database Question(18)
  8. VB.NET / MS Access Question(6)
  9. VB.NET: MS-Access Interaction Tutorial (Part I)(18)
  10. VB.NET & MS Access Issue(3)
  11. Connecting Ms Access To Php Using Odbc(5)
  12. Firefox 2(3)
  13. C++: Basic Classes(5)
  14. Cracking Wireless Access Point Password?(22)
  15. Access(17)
  1. Access 97 To Access 2003(15)
  2. Access Linux Box From Windows Machine- Putty Tool(2)
  3. Integrate Access Database Onto Intranet Site(5)
  4. Domain Name Is Not Assigned To Ip. Access Cpanel With Ip Not With Domain Name.(6)
  5. Main Trap17 Site Is Down?(0)
  6. Accessing Ms Access Database From A Centralized Location?(5)
  7. Mysql Database Management(1)
  8. Mysql Database Entry By Excel Sheets(2)
  9. Space Needed For Database(10)
  10. Database Access On Remote Server W/jsp(0)
  11. Access Denied As Admin On Xp, Services Troubles(4)
  12. Ssh Access ?(2)
  13. Some Useful Database Links.(7)


 



- Lo-Fi Version Time is now: 5th September 2008 - 06:24 AM