|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello,
I have a website build with PHP and I have a Access database. How can I make a connection to this database and how can I get information out of it? Not just like mysql_connect($host, $name, $pass) Or mysql_query("select * from people where id='1' ") thanxx for the help! Cya Bjorn |
|
#2
|
|||
|
|||
|
i dont know if you cant connect to an access database with php???
|
|
#3
|
|||
|
|||
|
no can do
Recently went through the headache of trying to do it and had no success. Don't think there is a way - at least not one that I know of.
|
|
#4
|
|||
|
|||
|
Oke but maby It is possible to include a ASP file into PHP orsomething?
I cant imagine that such sophisicated language cannot make a connection to a access database! Cya Bjorn ![]() |
|
#5
|
|||
|
|||
|
I agree. You'd think it would be relatively easy. Maybe there is a way - hopefully someone will reply w/ better news.
|
|
#6
|
|||
|
|||
|
Neutcomp,
Take a look here... You can use Access, you'll just need to use an ODBC driver. Hope that helps!
__________________
____________________________________________ Developer Shed Weekly Writer | DevArticles Forum Moderator Build Your Own KlipFolio Klip With PHP FrankManno.com - Under Construction Design Interactive Group - Under Construction |
|
#7
|
|||
|
|||
|
Quote:
Hmm, maybe the guys at php realised that access is a pretty ****ty database and decided not to implement it. |
|
#8
|
|||
|
|||
|
lol ya, probably. mysql all the way
![]()
__________________
![]() ![]() "Only Linux users see the end of crashes." - Pl4t0 |
|
#9
|
|||
|
|||
|
Quote:
Hehehe... Well put! But seriously, Access isn't really a development database... It's uses are more for organization and for personal use. Think about it, it's packaged with MS Office! ![]() |
|
#10
|
|||
|
|||
|
also when it comes to relational databases, acess would be at the bottom of the list. Im learning asp at the moment, and the book im reading, basically says access suxs balls, and thats putting it in a nice way
|
|
#11
|
|||
|
|||
|
easy fellas..
Hey, I couldn't agree w/ you guys more about the deficits Access presents when doing more sophisticated projects. But lets have a little more objectivity here, ah? As web developers, we all may be faced w/ such a situation where either the client implicitly requests this 'dreaded' scenario, or some other mitigating circumstance that may actually force us to explore the notion of making PHP and Access shake hands. Isn't that inclusive of the ultimate goals for open source programming? The ability to break down the proprietary walls built by the would-be software monopolies. Food for thought.
|
|
#12
|
|||
|
|||
|
Confuxion,
I couldn't agree with you more... But these are just personal preferences that I'm sure most of us have (whether they be the same or not)... The fact of the matter is that when it comes down to it, you would want to use the best tools to get the job done. If a client requests Access, then by all means you would have to use it. But there are circumstances where informing the client of a better and more efficient product may get the job done sooner, and will reduce costs in the long run. Besides, the alternative may be a low-cost or no-cose (MySQL) solution. |
|
#13
|
|||
|
|||
|
Point taken
Yeah, the price issue. Yet another reason to go w/ MySQL, indeed. |
|
#14
|
|||
|
|||
|
Guys - MySQL = good for speed. But it's definitely not the best!
|
|
#15
|
|||
|
|||
|
elaborate, please
So what is, if you don't mind me asking
|
|
#16
|
|||
|
|||
|
Hold!
Oke back to the topic!
PHP Code:
This is what I thought it would be. Yes there is no password on it. :-) Error: Parse error: parse error in d:\www\thevictory.nl\www\asp\connectie.php on line 12 I also tried this! PHP Code:
Error: Warning: Invoke() failed: Exception occurred. in d:\www\thevictory.nl\www\asp\connectie.php on line 14 There is NO DSN connection. Thanxx Bjorn ![]() |
|
#17
|
|||
|
|||
|
Quote:
Not sure if it's the best... I haven't used many other database systems... In fact, we're starting to use Oracle, but I haven't had much experience with it yet. As for the best database, I think it all comes down to preference and project requirements. What would you say is the best, if one exists? |