|
-
Jul 25th, 2006, 03:44 AM
#1
Thread Starter
Frenzied Member
Connecting to .mdb in PHP
Does anyone know how I can connect to a .MDB in PHP??? does anyone have a code??
-
Jul 25th, 2006, 04:05 AM
#2
Fanatic Member
Re: Connecting to .mdb in PHP
noister
<advertising link removed by moderator>
-
Jul 25th, 2006, 04:16 AM
#3
Thread Starter
Frenzied Member
Re: Connecting to .mdb in PHP
Yeah but wqe have a problem.....
Code:
<?php
$database = 'db1.mdb';
$user = '';
$password = '';
$conn = db2_connect($database, $user, $password);
if ($conn) {
echo "Connection succeeded.";
db2_close($conn);
}
else {
echo "Connection failed.";
}
?>
Fatal error: Call to undefined function: db2_connect() in /home/rlnz/public_html/admin/zz.php on line 6
-
Jul 25th, 2006, 04:25 AM
#4
Re: Connecting to .mdb in PHP
Isn't this a Visual Basic Forum or am I lost
Use [code] source code here[/code] tags when you post source code.
My Articles
-
Jul 25th, 2006, 05:14 AM
#5
Re: Connecting to .mdb in PHP
I would set up an ODBC driver for the Access database and use the built in ODBC functions.
-
Jul 25th, 2006, 05:14 AM
#6
Re: Connecting to .mdb in PHP
-
Jul 25th, 2006, 05:34 AM
#7
Re: Connecting to .mdb in PHP
ODBC is your best option, because it manages concurrent access to the file. This is something that Access is not good at at the best of times.
My advice is, DON'T use Access.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|