-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathB2.php
49 lines (46 loc) · 1.3 KB
/
B2.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
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
$db_connection = mysql_connect("localhost", "cs143", "");
if (!db_connection) {
$errmsg=mysql_error($db_connection);
print "Connection failed <br>";
exit(1);
}
mysql_select_db("CS143", $db_connection);
echo <<<HTMLCODE
<html>
<title>Add Actor/Director</title>
<link rel="stylesheet" type="text/css" href="Project1C.css">
<div id="sidebar">
<ul>Add New Content:<br>
<li><a href="I1.php">Add Actor/Director</a></li>
<li><a href="I2.php">Add Movie Information</a></li>
<li><a href="I3.php">Add Comments</a></li>
<li><a href="I4.php">Add Movie/Actor Relation</a></li>
<li><a href="I5.php">Add Movie/Director Relation</a></li>
</ul>
<ul>Browsing Content:<br>
<li><a href="B1.php">Show Actor Information</a></li>
<li><a href="B2.php">Show Movie Information</a></li>
</ul>
<ul>Search Interface:<br>
<li><a href="S1.php">Search Actor/Movie</a></li>
</ul>
</div>
<div id="main">
Show Movie Information<br>
<!--php -->
Actors in this movie<br>
<!--php -->
User Review<br>
<!--php -->
<hr></hr>
<form method="GET" ACTION="B1.php">
Search for other actors/movies<br>
Search: <input type="text" name="keyword"></input>
<input type="submit" value="Search"/>
</form>
</div>
</html>
HTMLCODE;
mysql_close($db_connection);
?>