01.
<?php
02.
include
(
"database_connect.php"
);
03.
include
(
"menubar.php"
);
04.
05.
$result
=mysqli_query(
$dbc
,
"SELECT * FROM assignedtopic WHERE id = '"
.
$_REQUEST
['id
']."'
");
06.
$row
=mysqli_fetch_array(
$result
);
07.
08.
?>
09.
<html>
10.
<head>
14.
<link href=
"all-css-doc.css"
rel=
"stylesheet"
type=
"text/css"
>
16.
<link href=
"dropzone.css"
rel=
"stylesheet"
type=
"text/css"
>
17.
<script src=
"dropzone.js"
type=
"text/javascript"
></script>
18.
</head>
19.
20.
<body>
21.
<br>
22.
<center><img src=
"Logo_Science.png"
style=
"width:100px;height:100px;"
></center>
23.
s
24.
<br>
25.
<form method =
'post'
action =
'Uploadyoutube.php'
>
26.
<div
class
=
"col-xs-10 col-xs-offset-1"
>
27.
<div
class
=
"panel panel-default"
>
28.
<div
class
=
"panel-heading"
style=
"padding:20px;"
>
29.
<h3
class
=
"panel-title"
><span style=
'font-size:20px;'
>Post youtube link<br><br>Topic Name: <?php
echo
$row
[
'ProjectName'
]?></span></h3>
30.
</div>
31.
<div
class
=
"panel-body"
>
32.
33.
<label>Link :</label> <input type=
"text"
name=
"link"
value=
'<?=$row['
VDO
']?>'
><br>
34.
35.
36.
37.
38.
39.
<br><br>
40.
<input type=
"submit"
value=
"Submit"
name =
"submit"
>
41.
<input type=
"submit"
value=
"Back"
formaction =
"student_assignedtopic.php"
>
42.
43.
<?php
44.
if
(isset(
$_POST
[
'submit'
])) {
45.
$result
=mysqli_query(
$dbc
,
"SELECT * FROM assignedtopic WHERE id = '"
.
$_REQUEST
['id
']."'
");
46.
$row
=mysqli_fetch_array(
$result
);
47.
48.
mysqli_query(
$dbc
,
"UPDATE assignedtopic SET VDO = '"
.
$_REQUEST
['link
']."'
WHERE id =
'".$_REQUEST['
id
']."'
");
49.
header(
"location:student_assignedtopic.php"
);
50.
51.
}
52.
?>
53.
54.
</div>
55.
</div>
56.
</div><!--close div grid-->
57.
</div>
58.
</form>
59.
</body>
60.
</html>