-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathadd_content_form.php
More file actions
51 lines (47 loc) · 1.44 KB
/
add_content_form.php
File metadata and controls
51 lines (47 loc) · 1.44 KB
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
50
51
<?php include "config.php";?>
<html>
<head>
<title>Add Content</title>
</head>
<body>
<a href="index.php">Home</a>
<br/><br/>
<form action="add_content.php" method="post" name="form2">
<table width="25%" border="0">
<tr>
<td>Course Name</td>
<td>
<select name="course_name">
<?php
$query = "SELECT course_id,course_name FROM course";
$result = mysqli_query($con, $query) or die();
while($row = mysqli_fetch_array($result))
{
echo '<option value='.$row['course_id'].'>'.$row['course_name'].'</option>';
}
// $role_query = mysqli_query($mysqli,"Select role_id from role where role_name=role_name");
// $role_result = mysqli_fetch_array($role_query);
?>
</select>
</td>
</tr>
<tr>
<td>Content Heading</td>
<td><input type="text" name="content_heading"></td>
</tr>
<tr>
<td>Content Description</td>
<td><input type="text" name="content_description"></td>
</tr>
<tr>
<td>Video URL</td>
<td><input type="text" name="video_url"></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="Submit_Content" value="Add Course"></td>
</tr>
</table>
</form>
</body>
</html>