Page 1 of 1

What is my user name when i work with mdb?

Posted: Sun Sep 22, 2002 5:34 am
by pelegk
i am trying to connect to mdb with php!
i am using the example on :
http://www.phpbuilder.com/columns/siddarth20000228.php3

but when i made the dtata base i was only asked for password!
so when i try to connect it i try 'Admin' as the user and the password i gave it and i get :

Warning: SQL error: [Microsoft][ODBC Microsoft Access Driver] Not a valid password., SQL state 42000 in SQLConnect in c:\inetpub\wwwroot\connect.php on line 5

my code is :
$cnx = odbc_connect( 'myDb' , 'Admin', 'peleg' );

HELPPPPPPPPPPPPP

Posted: Sun Sep 22, 2002 6:25 am
by mydimension
im not familiar with mdb but since it is microsoft i would suggest using your windows username. remember this is just a guess but at least its worth a try.