Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 7th, 2003, 04:04 AM
toia toia is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 1 toia User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry mdb tools

Hello Sirs

ENVIRONMENT:
Linux Red Hat 8.0

TARGHET:
Retrieve data from a .mdb file mounted on linux file system from PHP-HTML


I’ve successfully installed mdb tools:
./configure –-with-unixodbc
make
make install

I tried to set up a DSN using ODBCConfig but it seems that the setup driver file is missing.

So I’ve manually insert DSN:


*** ODBC.INI:
[MSAccess]
Description = Microsoft Access
Driver = MDBToolsODBC
Database = /var/www/mdb/test.mdb
Servername = localhost
UserName =
Password =
Port = 5432


*** ODBCINST.INI:
[MDBToolsODBC]
Description = MDB Tools ODBC drivers
Driver = /usr/local/lib/libmdbodbc.so.0
Setup =
FileUsage = 1
CPTimeout =
CPReuse =


*** myappl.PHP:
<?php
$myDB = odbc_connect("MSAccess","","");
$query = "select mfg from tblModems";
$result = odbc_exec($myDB, $query);
$report = odbc_fetch_row($result);
echo odbc_result($result, 1);
odbc_close($myDB);

but when I try to use my DSN inside the php-html file MS Explorer tell me:

Warning: SQL error: [unixODBC]Could not find Database parameter, SQL state 08001 in SQLConnect in
/usr/keb/apache/htdocs-portal/keb-php/customer.php on line 72


line 72 is this: $myDB = odbc_connect("MSAccess","","");

oh by the way.. If I try isql command DSN works properly !


I don't know what to do !


Thanks in advance.

Reply With Quote
  #2  
Old December 4th, 2003, 03:09 AM
zinner zinner is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 1 zinner User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Did you find a solution ?
I've got the exact problem.

TIA

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > mdb tools


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT