Hi,

******first step: 
create DSN in Windows (Control Panel, ODBC) and bind
it with your Access database

******then in php code:****

     $dbhandle = odbc_connect('YourDSN', '','');

     if($dbhandle == 0)
     {
        die('Error connecting DB'); // or error
handler
     }

*****here do your php stuff****
you can use for example below commands to get your
data from DB
**     $qry = your sql
**     $cursor = odbc_exec($dbhandle, $qry)
**     odbc_fetch_row($cursor)
**     odbc_result($cursor,'field name')

*****then close connection*****

     odbc_close($dbhandle);

this is the idea...

HTH

Piotr

--- Someone Somewhere <[EMAIL PROTECTED]>
wrote:
> Can anyone offer some help
> 
> I need to connect to an acces database, Using php on
> Windows with Apache.
> If anyone has some sample code I would greatly
> appreciate it I am lost about 
> the wholeODBC thing.
> 
> Cirkit
> 
> 
> 
>
_________________________________________________________________
> Chat with friends online, try MSN Messenger:
> http://messenger.msn.com
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to