Hi,

----- Original Message -----
From: "Brent Simpson" <[EMAIL PROTECTED]>


> I've been reading up on this most of the day and still can't get it!

You'll say DOH! later ;-)

> I need to use PHP to make connections to MySQL. When I use my actual
> host name to make the connection I get this:
> Warning: Access denied for user: '[EMAIL PROTECTED]' (Using
> password: YES) in /var/www/html/php/db_mysql.inc on line 73
> Database error: pconnect(foo.bar.ucla.edu, mysql, $Password) failed.
> MySQL Error: ()
> Session halted.

Do you actually see $Password in the error message?
In that case I would think (but can't be sure since you didn't post your PHP
code - please do that next time!) that you may have used singe quotes around
$Password in your pconnect() call as well as for your error printing.
Either remove the single quotes, or change them to double quotes.
PHP does not expand variables for single-quoted strings.


Regards,
Arjen.

--
MySQL Training Worldwide, http://www.mysql.com/training/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Mr. Arjen G. Lentz <[EMAIL PROTECTED]>
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, Technical Writer
/_/  /_/\_, /___/\___\_\___/   Brisbane, QLD Australia
       <___/   www.mysql.com




---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to