blob: bacf3637e2059ef8db9c9bd4102200e87e65c892 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?php
date_default_timezone_set('UTC');
function connectDB() {
$username = "root";
$password = "opnfv";
$hostname = "localhost";
$dbhandle = mysql_connect($hostname, $username, $password)
or die("Unable to connect to MySQL.");
$selected = mysql_select_db("opnfv_pharos",$dbhandle)
or die("Could not select opnfv_pharos DB.");
}
function closeDB(){
mysql_connect($dbhandle);
}
?>
|