Browse Source

database config

Vendetta Boss 4 years ago
parent
commit
4fe32b1066
1 changed files with 12 additions and 0 deletions
  1. 12 0
      config.php

+ 12 - 0
config.php

@@ -0,0 +1,12 @@
+<?php
+ob_start();
+
+try {
+
+	$con = new PDO("mysql:dbname=googleclone;host=localhost", "root", "");
+	$con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
+}
+catch(PDOExeption $e) {
+	echo "Connection failed: " . $e->getMessage();
+}
+?>