mysql_connect("host","username","password");

If there is no password, leave it blank. "host" is the name or IP
address of the MySQL server. Set it to localhost if it's on the same
machine as the script.

---John Holmes...

> -----Original Message-----
> From: Paras Mukadam [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 02, 2002 12:46 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP with MySQL
> 
> Hi Gurus,
> one MySQL - PHP query : while granting permissions to particular user
in
> MySQL, the administrator has to give username@machine_address !! Then
how
> can we connect to MySQL through PHP only by passing "username" as one
of
> the
> arguments to mysql_connect() ?
> 
> Thanks.
> Paras.
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to