Re: Help PHP + Access
| From: | Piotr Pluciennik | Date: | Wed, 23 Jul 2003 13:06:10 +0000 |
| Subject: | Re: Help PHP + Access | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-20880@lists.php.net to get a copy of this message | ||
to connect to db via ODBC:
$dbhandle = @odbc_connect('your_ODBC_DSN',
'user','password');
if($dbhandle == 0)
{
die('Database not connected');
}
where "your_ODBC_DSN" is name of your ODBC source;
then you use all odbc instructions to work with your
db using for example:
1. odbc_exec($dbhandle, $query);
2. odbc_fetch_row($cursor);
3. odbc_result($cursor,'db_field_name');
then at the end you close your database:
odbc_close($dbhandle);
Read more in the manual under "Unified ODBC functions"
HTH
Piotr
--- Kishore Kumar <lbg_kishore@hotmail.com> wrote:
> I am trying to connect MS Access XP with PHP.
>
> Could Some One Tell Me How to Write a Code For that.
> (A Sample Code Will Be
> Better For Me To Understand).
>
>
> Advance Thanks.
> By Kishore.
>
>
_________________________________________________________________
> It's all happening @ F1. Feel the thrill!
> http://server1.msn.co.in/sp03/formula2003/index.asp
> Race along right here!
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com