title: Warning: include_once(../lib/Database.php): failed to open stream: No such file or directory
body: <blockquote>
  <p>Warning: include_once(../lib/Database.php): failed to open stream: No
  such file or directory in
  C:\xampp\htdocs\project\e-commerce\classes\Adminlogin.php on line 4</p>
  <p>Warning: include_once(): Failed opening '../lib/Database.php' for
  inclusion (include_path='C:\xampp\php\PEAR') in
  C:\xampp\htdocs\project\e-commerce\classes\Adminlogin.php on line 4</p>
  <p>Fatal error: Class 'Database' not found in
  C:\xampp\htdocs\project\e-commerce\classes\Adminlogin.php on line 17</p>
  </blockquote>
  <p>How can i solve this problem?  My code is here...</p>
  <pre class="lang-php prettyprint-override"><code>&lt;?php
      include '../lib/Session.php';
      Session::checkLogin();
      include_once '../lib/Database.php';
      include_once '../helpers/Format.php';
  ?&gt;
  </code></pre>
  <pre class="lang-php prettyprint-override"><code>&lt;?php
      /**
      * Adminlogin Class
      */
      class Adminlogin {
          private $db; 
          private $fm; 
  
          public function __construct(){
              $this-&gt;db = new Database();
              $this-&gt;fm = new Format();
          }
  
          public function adminLogin($adminUser,$adminPass){
              $adminUser = $this-&gt;fm-&gt;validation($adminUser);
              $adminPass = $this-&gt;fm-&gt;validation($adminPass);
  
              $adminUser = mysqli_real_escape_string($this-&gt;db-&gt;link, $adminUser);
              $adminPass = mysqli_real_escape_string($this-&gt;db-&gt;link, $adminPass);
  
              if (empty($adminUser) || empty($adminPass)) {
                  $loginmsg = &quot;Username and Password must not be empty..!!&quot;;
                  return $loginmsg;
              } else {
                  $query = &quot;SELECT * FROM tbl_admin WHERE adminUser = '$adminUser' AND adminPass = '$adminPass'&quot;;
                  $result = $this-&gt;db-&gt;select($query); 
                  if ($result != false) {
                      $value = $result-&gt;fetch_assoc();
  
                      Session::set(&quot;adminlogin&quot;, true);
                      Session::set(&quot;adminId&quot;, $value['adminId']);
                      Session::set(&quot;adminName&quot;, $value['adminName']);
                      Session::set(&quot;adminUser&quot;, $value['adminUser']);
                      header(&quot;Location:dashbord.php&quot;);
                  } else{
                      $loginmsg = &quot;Username and Password not match !!&quot;;
                      return $loginmsg;
                  }
              }
          }
      }
  ?&gt;
  </code></pre>