-
Notifications
You must be signed in to change notification settings - Fork 1
/
galleryshow.php
48 lines (42 loc) · 1.34 KB
/
galleryshow.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
<?php
session_start();
$sesuser=$_SESSION['sesuser'];
if(!$sesuser)
header("location:logout.php");
include('comman/connect.php');
$sql="select * from registration where email='$sesuser'";
$result = mysqli_query($con,$sql);
$data=mysqli_fetch_array($result);
?>
<!DOCTYPE html>
<html>
<head>
<title>:: Admin NIT jsr</title>
<link rel="stylesheet" type="text/css" href="css/style1.css">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/font-awesome.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<?php include('comman/menu.php');?>
<div class="main" style="border: 0px solid #333;">
<div class="hedding">Add Gallery Images</div>
<div class="form">
<?php
include('comman/connect.php');
$res=$con->query("select * from gallery order by(gid) desc");
while($row=mysqli_fetch_array($res))
{ $id=$row['gid']; $pic=$row['pic']; ?>
<div class="galbox">
<img src="gallery/<?php echo $pic;?>">
<div class="gallname"><?php echo $row['name'];?></div>
<a href="delete.php?id=<?php echo $id;?>&&tname=gallery&&pic=<?php echo $pic;?>">Delete</a>
</div>
<?php }
?>
<div class="clear"></div>
</div>
</div>
<?php include('comman/footer.php');?>
</body>
</html>