Skip to content

Instantly share code, notes, and snippets.

@hungdh0x5e
Last active March 16, 2016 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hungdh0x5e/3383e5f729c5053d72db to your computer and use it in GitHub Desktop.
Save hungdh0x5e/3383e5f729c5053d72db to your computer and use it in GitHub Desktop.
GCM with Android Tutorial
<?php
public function connect() {
require_once 'config.php';
$con = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
// selecting database
mysql_select_db(DB_DATABASE);
// return database handler
return $con;
}
// Closing database connection
public function close() {
mysql_close();
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment