-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreviewpost.php
More file actions
27 lines (27 loc) · 752 Bytes
/
Copy pathreviewpost.php
File metadata and controls
27 lines (27 loc) · 752 Bytes
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>USER : MDBMS</title>
</head>
<body>
<?php
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("Movie", $con);
$x30=$_POST['movie'];
$x31=$_POST['review'];
$x32=$_POST['em'];
$result5 = mysql_query("SELECT * FROM Movie WHERE moviename='$x30'");
while($row = mysql_fetch_array($result5))
{$x90=$row['movie_id'];
mysql_query("INSERT INTO Review (Movie_name, Movie_review, Id) VALUES ('$x30', '$x31', '$x90')");
}
echo "Succesfully posted review"."<br/>"."<br/>";
echo "<a href=new1.php?pass=$x32>BACK</a>";
mysql_close($con);
?>
</body>
</html>