just a seemingly dumb question here, but since i have almost the same setup (php4.1.1, apache1.3.22, mysql on winxp) ...
I now i had many "arrrggg's" that would not pass either.
this is how i got it to work.
else {
// connect to mysql
$mysql = mysql_connect('localhost', 'booker', 'abc123');
if(!$mysql)
{
echo 'cannot connect to db';
exit;
}
$mysql = mysql_select_db('auth');
if(!$mysql)
{
echo 'cannot Select db';
exit;
}
but, the kicker was that when establising in the "auth" database the users grants, i had to do this.
mysql>use auth;
mysql>grant all (or whatever privledges) on auth.* to booker@localhost identified by 'abc123';
if i did not add the @, then it would not work, even though you would think that the engine would append the @ for you, at least that's what i thought..."of course im @...grrr"
dunno, you might already have dont this too... /shrug
GL.