Skip to content

Instantly share code, notes, and snippets.

@Motoma
Created March 9, 2011 14:33
Show Gist options
  • Save Motoma/862275 to your computer and use it in GitHub Desktop.
Save Motoma/862275 to your computer and use it in GitHub Desktop.
function connect()
{
$this->database_link = mysql_connect($this->database_host, $this->database_user, $this->database_pass) or die("\
Could not make connection to MySQL");
mysql_select_db($this->database_name) or die ("Could not open database: ". $this->database_name);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment