Last active
March 16, 2016 09:41
-
-
Save hungdh0x5e/3383e5f729c5053d72db to your computer and use it in GitHub Desktop.
GCM with Android Tutorial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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