Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > PHP > Linking Access DBs to Websites using PHP

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-27-03, 14:28
MarkNewman MarkNewman is offline
Registered User
 
Join Date: Dec 2003
Posts: 3
Linking Access DBs to Websites using PHP

What's the easiest way to link an Access DB to a Website using PHP? I want to generate approx 5,000 dynamic Web pages using the content from the DB and also let my Website's users search the DB.

Can anyone point me towards some simple-to-follow code that I could adapt for my own use?

As you can probably tell, I am relatively new to this.

Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 01-08-04, 14:52
rweston002 rweston002 is offline
Registered User
 
Join Date: Jul 2003
Location: Jersey
Posts: 11
Re: Linking Access DBs to Websites using PHP

Quote:
Originally posted by MarkNewman
What's the easiest way to link an Access DB to a Website using PHP? I want to generate approx 5,000 dynamic Web pages using the content from the DB and also let my Website's users search the DB.

Can anyone point me towards some simple-to-follow code that I could adapt for my own use?

As you can probably tell, I am relatively new to this.

Thanks in advance.


Hey,
think a little more information is needed. Is everything you're trying to do windows based? If so, then the best way to go probably is to ODBC and create a DSN (probably system) pointing to your access database.

You can then use PHP's built in ODBC functions to do your data query/manipulation.

http://us3.php.net/manual/en/ref.odbc.php

http://php.weblogs.com/odbc <- try that... there are better ones i've seen, but at work and dont have much time to search... have fun.

another (better i think) link: http://www.phpfreaks.com/tutorials/61/0.php

Last edited by rweston002 : 01-08-04 at 15:31.
Reply With Quote
  #3 (permalink)  
Old 01-10-04, 20:09
MarkNewman MarkNewman is offline
Registered User
 
Join Date: Dec 2003
Posts: 3
Re: Linking Access DBs to Websites using PHP

Thanks, Randy. Very useful links, however I should have added that I am running RedHat Linux 7.3, my Web server is Apache 1.3.27 and my DB server is MySQL 3.23.56. Any further pointers gratefully received!

Cheers,
Mark

Quote:
Originally posted by rweston002
Hey,
think a little more information is needed. Is everything you're trying to do windows based? If so, then the best way to go probably is to ODBC and create a DSN (probably system) pointing to your access database.

You can then use PHP's built in ODBC functions to do your data query/manipulation.

http://us3.php.net/manual/en/ref.odbc.php

http://php.weblogs.com/odbc <- try that... there are better ones i've seen, but at work and dont have much time to search... have fun.

another (better i think) link: http://www.phpfreaks.com/tutorials/61/0.php
Reply With Quote
  #4 (permalink)  
Old 01-11-04, 13:56
rweston002 rweston002 is offline
Registered User
 
Join Date: Jul 2003
Location: Jersey
Posts: 11
Re: Linking Access DBs to Websites using PHP

Quote:
Originally posted by MarkNewman
Thanks, Randy. Very useful links, however I should have added that I am running RedHat Linux 7.3, my Web server is Apache 1.3.27 and my DB server is MySQL 3.23.56. Any further pointers gratefully received!

Cheers,
Mark


Hey, so, you wanna use MySQL along with an Access Database?
Reply With Quote
  #5 (permalink)  
Old 01-12-04, 06:06
MarkNewman MarkNewman is offline
Registered User
 
Join Date: Dec 2003
Posts: 3
Re: Linking Access DBs to Websites using PHP

Yes, I think's that probably the best solution. A slight change from my original request!

Quote:
Originally posted by rweston002
Hey, so, you wanna use MySQL along with an Access Database?
Reply With Quote
  #6 (permalink)  
Old 02-27-04, 23:22
rlegend rlegend is offline
Registered User
 
Join Date: Feb 2004
Posts: 3
Re: Linking Access DBs to Websites using PHP

First find a cute access script for converting the access database to Mysql. Then use mysql connection functions native to php.
Or use MYODBC and make an ODBC connection to the mysql datbase if you like odbc commands.

GoodLuck




Ron
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On