-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwelcome.php
More file actions
61 lines (54 loc) · 1.33 KB
/
welcome.php
File metadata and controls
61 lines (54 loc) · 1.33 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
52
53
54
55
56
57
58
59
60
61
<?php include 'fact.php';
session_start();
$n=$_SESSION['n'];
$f=getIMG();
// echo "<pre>";
// print_r($f);
// echo "</pre>";
//echo $n;
//if(empty($n)){
//header("location:login.php");
//}
//else{
?>
<!doctype html>
<html>
<head>
<title>
web1
</title>
</head>
<body>
welcome <?=$_SESSION['n']?>
<?php foreach ($f as $i){?>
<img src="upload/<?=$i['name']?>" height="200" width="200">
<?php } ?>
<br>
<table border="1px">
<tr>
<th>Id</th>
<th>Name</th>
<th>Email</th>
<th>Action</th>
</tr>
<?php foreach($users as $u){ ?>
<tr>
<td> <?php echo $u['id'];?> </td>
<td> <?=$u['name']?> </td>
<td> <?=$u['email']?> </td>
<td>
<form action="fact.php" method="post">
<input type="hidden" name="id" value="<?php echo $u['id'];?>">
<input type="submit" name="del" value="delete">
</form>
<a href="edit_user.php?id=<?php echo $u['id'];?>">Edit</a>
</td>
</tr>
<?php } ?>
</table>
</body>
</html>
<?php
//}
//session_destroy();
?>