In message <[EMAIL PROTECTED]>, Suzi <[EMAIL PROTECTED]>
writes
>...but since the database is not on the "localhost", how do I form the
>php code to link to an external database?
>
>I have set the external sites as "Access Hosts" on the main site. What
>do I do to connect these external sites to the main database?
$connection = mysql_connect("www.thathost.com","username","password") or
die("Couldn't make a connection.");
Be aware that, because of security, you may not be allowed to connect in
this way - even if you can set "Access Hosts". If you cannot connect,
then you need to connect via a page which you create on the 'database
server domain'. This technique is known as tunnelling.
>
>Thanks,
>
>Susan
--
Pete Clark
http://www.hotcosta.com
http://www.spanishholidaybookings.com
------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/HKFolB/TM
--------------------------------------------------------------------~->
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/