Date: 12/27/00
- Next message: David Tod Sigafoos: "Re: [PHP-DB] anyway to get password if encrypted by PASSWORD() ?"
- Previous message: Jonathan Ohlrich: "RE: [PHP-DB] anyway to get password if encrypted by PASSWORD() ?"
- Maybe in reply to: Scott Fletcher: "[PHP-DB] Connecting to db on a different machine"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
$db = "mydatabasename";
$user = "myusername";
$pw = "mypassword";
$mysql_access = mysql_connect("domain_name_or_ip_address", $user, $pw);
mysql_select_db($db, $mysql_access);
easy cheesey. just make sure you're using the correct name and password. if
you need to setup a new user name and password consult the mysql docs on
granting permission. www.mysql.com
jason
Scott Fletcher <scott <email protected>> wrote in message
news:92d5qa$lcg$1 <email protected>
> Hiya Everyone!
>
> I'm a bit stump on how can I do this. I'm doing a webpage that
connect
> to the database using PHP. Right now I have a 2nd website which is on a
> different machine and I have not yet figure out how to write the script
that
> would allow the website on the different machine to hook up to the
original
> machine which host the 1st website and have a database.
> I found that odbc_connect is not hte way to go because it only include
> the database table, username and password but lack the machine name.
>
> Anyone know? Thanks!
>
> Scott
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe <email protected>
> For additional commands, e-mail: php-db-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
>
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: David Tod Sigafoos: "Re: [PHP-DB] anyway to get password if encrypted by PASSWORD() ?"
- Previous message: Jonathan Ohlrich: "RE: [PHP-DB] anyway to get password if encrypted by PASSWORD() ?"
- Maybe in reply to: Scott Fletcher: "[PHP-DB] Connecting to db on a different machine"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

