MySQL Forums
Forum List  »  Install & Repo

Re: how to access database on different machine on LAn
Posted by: Ameet Jayawant
Date: October 25, 2004 01:43PM

Hi Ratish,
Check out the PHP manual or go to: http://in.php.net/function.mysql-connect

They have several explanations for what you want to do. For eg.
<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>

Options: ReplyQuote


Subject
Written By
Posted
Re: how to access database on different machine on LAn
October 25, 2004 01:43PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.