--- java4ll_cs <[EMAIL PROTECTED]> wrote:
> hi all
> how i connect to db on remote server by php?
> i use my sql for database
>
> thank u all in advance
Depends on the version of PHP and MySQL you are using.
One of these should work for you:
$foo=mysql_connect('username','password','192.168.0.1')
or
$foo=mysqli_connect('username','password','192.168.0.1','db_name')
Please use a more descriptive subject line from now
on.
Thank you
-Nick
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/