This is the error I am getting.

> 
> Fatal error: Class 'Database' not found in C:\wamp\www\midtermexam\read.php on line 11
> 
> 
> 

```
<?php
    include 'database.php';
    $id = null;
    if ( !empty($_GET['id'])) {
        $id = $_REQUEST['id'];
    }

    if ( null==$id ) {
        header("Location: index.php");
    } else {
        $pdo = Database::connect(); //HERE IS THE LINE PROBLEM
        $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        $sql = "SELECT * FROM tbl_students where id = ?";
        $q = $pdo->prepare($sql);
        $q->execute(array($id));
        $data = $q->fetch(PDO::FETCH_ASSOC);
        Database::disconnect();
    }
?>

```

And here is my database file database.php 

```
<?php 
   $DB_HOST = 'localhost'; 
   $DB_USER = 'root'; 
   $DB_PASS = '';
   $DB_NAME = 'midtermexam'; 
   try{ 
       $DB_con = new PDO("mysql:host={$DB_HOST};
       dbname={$DB_NAME}",$DB_USER,$DB_P‌​ASS); 
       $DB_con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); 
  } 
  catch(PDOException $e){
       echo $e->getMessage(); 
  } ?> 

```