FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

is it possible to connect to Access Database using PHP?

 


archiep0gi
could you help me here..

please send me the connection string.

tanks!
kv
You can use odbc to connect to access db. It will look something like this

Code:


$db_connection = odbc_connect("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=c:\\mydb.mdb", "ADODB.Connection", "password", "SQL_CUR_USE_ODBC");



Then you can use odbc functions like

Code:
odbc_tables
odbc_fetch_row
odbc_result


etc.

This works on windows only though.
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.