aboutsummaryrefslogblamecommitdiff
path: root/edit.php
blob: 3ddada54a7dfcc66e41a537155ba6fca4df5ed56 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                                           
<?php
session_start();

if (isset($_SESSION['admin']) && $_SESSION['admin'] == true) {
	try {
		$user = "yota_admin";
		$password = "quaequaquagh6ahwoh6Chahx1EiFooGh";
		$database = "yota_call_db";
		$conn = new PDO("mysql:host=localhost;dbname=$database", $user, $password);
		$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
	} catch (PDOException $e) {
		echo "<p>Error!: " . $e->getMessage() . "</p>";
	}

}