connect to database

A

Anonymous

Guest
any one help me,i cann't connect to my database,whether mysql or access.
error "invoke()...".Mysql cann't connect to localhost,too
please show me the way to connect!
 
this is the code in my .php page
<?
$conn=new com("ADODB.Connection") or die("Cannot start AD0");
$conn->Open("Driver={Microsoft Access Driver(*.mdb)";DBQ=C:\\inetpub\\webpub\\12I_album\\home_files\\12i_album.mdb");
?>
or
<?
$conn=new com("ADODB.Connection") or die("Cannot start AD0");
$conn->Open("provider=Microsoft,.Jet.OLEDB.4.0=C:\\inetpub\\webpub\\12I_album\\home_files\\12i_album.mdb");
?>
they do not worK
 
no one help me?
please,anyone tell me what can i do to connect to my database!!!!
 
Back
Top