What is my user name when i work with mdb?

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
pelegk
Forum Newbie
Posts: 5
Joined: Wed Sep 18, 2002 6:26 am

What is my user name when i work with mdb?

Post 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
User avatar
mydimension
Moderator
Posts: 531
Joined: Tue Apr 23, 2002 6:00 pm
Location: Lowell, MA USA
Contact:

Post 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.
Post Reply