-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile.php
50 lines (35 loc) · 922 Bytes
/
profile.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
50
<?php
$title="Profile | Taalem | Online Course Learning";
require_once 'header.php';
if (!isset($_GET['id'])) {
header("Location: index.php");
}
$regid = $_GET['id'];
$dc = new Dataclass();
$getregq = "select regdate,username,usertype from register where regid=$regid";
$regdt = $dc->getRow($getregq);
if ($regdt['usertype'] == "student") {
$getuserq = "select * from student where regid=$regid";
$userd =$dc->getRow($getuserq);
include_once 'studprofile.php';
}else{
$getinsq = "select * from instructor where regid=$regid";
$insd =$dc->getRow($getinsq);
include_once 'insprof.php';
}
?>
<?php require_once 'footer.php';
if ($regdt['usertype'] != "student") {
?>
<script>
$('.cardcur').slick({
infinite:true,
slidesToShow:3,
arrows:true,
autoplay:true,
autoplaySpeed:1000
});
</script>
<?php } ?>
</body>
</html>