-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
36 lines (26 loc) · 936 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
require_once 'connection.php';
require_once 'model/movies.php';
$q = $_GET['q'];
$conn = getConnection();
$movieModel = new Movies($conn);
$matches = $movieModel->search($q);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta charset="UTF-8">
<link rel="icon" href="img/page-icon.png">
<title>2014 Movie Revenues</title>
<!-- bootstrap css -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
</head>
<body class="container">
<h1>Movie Revenues From 2014</h1>
<?php
include 'views/search-view.php';
include 'views/results.php';
?>
</body>
</html>