-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsingle.php
54 lines (54 loc) · 2.63 KB
/
single.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
51
52
53
54
<?php
include("includes/header.php");
?>
<section class="content_area">
<div class="container">
<div class="row">
<div class="col-md-8 col-sm-8 col-xs-12" style="margin-top:40px">
<div class="our_latest_courses">
<?php
if(isset($_GET['post_id'])){
$post_get_id = $_GET['post_id'];
$post = "select * from posts where post_id = '$post_get_id'";
$run_post = mysqli_query($con,$post);
while($post_row = mysqli_fetch_array($run_post)):
$post_id = $post_row ['post_id'];
$cat_id = $post_row ['cat_id'];
$post_title = $post_row ['post_title'];
$post_date = $post_row ['post_date'];
$post_author = $post_row ['post_author'];
$post_featured_image = $post_row ['post_image'];
$post_keywords = $post_row ['post_keywords'];
$post_content = $post_row ['post_content'];
$post_video = $post_row ['video_link'];
?>
<div class="single_latest">
<div class="section_title text-center">
<h2><?php echo $post_title;?></h2>
<?php
if(isset($_SESSION['luser_name'])):
?>
<img src="admin/images/<?php echo $post_featured_image;?>">
<?php echo $post_content;?>
<p>Youtube Link : </p><a href="<?php echo $post_video;?>"><?php echo $post_video;?></a>
<?php else:?>
<p>You must <a href="login.php">Login</a> to see this course.</p></br>
<?php endif;?>
<div class="course_meta">
<span><strong>Author : </strong><?php echo $post_author;?></span>
<span><strong>Keywords : </strong><?php echo $post_keywords;?></span>
<span><strong>Publish Date : </strong><?php echo $post_date;?></span>
</div>
</div>
</div>
<?php endwhile;?>
<?php };?>
</div>
</div>
<div style="margin-top:40px">
<?php include("includes/sidebar.php");?>
</div>
</div>
</div>
</section>
<?php include("includes/footer.php");?>