Skip to content
Snippets Groups Projects
Commit 8d08a4ac authored by Sibidharan's avatar Sibidharan :speech_balloon:
Browse files

include fix

parent 7cefa3c2
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
class User class User
{ {
private $conn;
public static function signup($user, $pass, $email, $phone) public static function signup($user, $pass, $email, $phone)
{ {
$conn = Database::getConnection(); $conn = Database::getConnection();
...@@ -18,4 +19,10 @@ class User ...@@ -18,4 +19,10 @@ class User
// $conn->close(); // $conn->close();
return $error; return $error;
} }
public function __construct($username){
$this->conn = Database::getConnection();
$this->conn->query();
}
} }
<?php <?php
include_once 'includes/Mic.class.php'; include_once 'includes/Mic.class.php';
include_once 'includes/User.class.php';
include_once 'includes/Database.class.php'; include_once 'includes/Database.class.php';
function load_template($name) function load_template($name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment