Sending requests with PHP
diff --git a/db/connect.php b/db/connect.php
new file mode 100644
index 0000000..0da9b3f
--- /dev/null
+++ b/db/connect.php
@@ -0,0 +1,11 @@
+<?php
+	// Define MySQL login variables
+	$servername = "fdb22.awardspace.net";
+	$username = "3155560_users";
+	$password = "btechnoro@fox4news.info";
+
+	// Create connection
+	$conn = new mysqli($servername, $username, $password, "3155560_users");
+	if ($conn->connect_error) die("Connection failed: " . $conn->connect_error);
+	$conn->set_charset("utf8");
+?>
diff --git a/db/fetch.php b/db/fetch.php
new file mode 100644
index 0000000..eddd5dd
--- /dev/null
+++ b/db/fetch.php
@@ -0,0 +1,17 @@
+<?php
+	if ($result = $conn->query($query)) {
+		
+		// Fetch the information of the user
+		while ($row = $result->fetch_row()) {
+			$user->id = $row[0];
+			$user->nomcomplet = $row[1];
+			$user->curs = $row[2];
+			$user->grau = $row[3];
+			$user->quimata = $row[4];	
+		}
+	
+		$result->close();
+	} else {
+		echo "Wrong query";
+	}
+?>