Re: remote access to mysql database
Here's the code I'm using in PHP to connect to the database.
<?
$hostname="someserver";
$username="someusername";
$password="thesecretpassword";
$dbname="test";
$db = mysql_connect($hostname,$username, $password) OR DIE ("<html><script language='JavaScript'>alert('Unable to connect to database! Please try again later.');</script></html>");
mysql_select_db($dbname, $db);
?>
Jim
Subject
Written By
Posted
Re: remote access to mysql database
May 31, 2006 09:02PM
December 06, 2007 03:11PM
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.