Hi, I'm a bit of a newbie to PHP and mySQL. I'm trying to get things running
on my W2K machine.
I'm having a problem using the mysql_connect() function (although the
problem's probably rooted in mysql). When trying to log in via PHP with the
code "$link = mysql_connect("localhost", "phil", "pwpass123");" I get the
error...
Warning: mysql_connect() [function.mysql-connect]: Access denied for user:
'phil@localhost' (Using password: YES) in c:\inetpub\wwwroot\php\mysql.php
on line 9
The thing is that it connects ok if I leave the username and password blank.
The ones I'm using above are ones I specified in mysqladmin when I first ran
it.
Can anyone help me 1) Stop mysql accepting blank username and password
values, and 2) get it to accept my defined username and password?
Many thanks in advance,
Phil