-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile.php
78 lines (49 loc) · 1.78 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
include('functions.php');
?>
<?php
$pagetitle = "Profilo - Fata Streaming";
include('inc/sections/head.php');
?>
<body>
<?php
include('inc/sections/header.php');
?>
<div class="content">
<div class="container pagina-profilo">
<h3>Le tue serie:</h3>
<ul class="mie-serie">
<?php
$query = "SELECT DISTINCT serie FROM epseen WHERE user = " . $_SESSION['user']['id'] . " ORDER BY id DESC";
$result1 = mysqli_query($db, $query);
while($row1 = mysqli_fetch_assoc($result1)) {
$query = "SELECT * FROM serie WHERE id = " . $row1['serie'];
$result = mysqli_query($db, $query);
while($row = mysqli_fetch_assoc($result)) {
$poster = $row['poster'];
$nomeserie = $row['nome'];
}
?>
<li class="mia-serie">
<div class="mia-serie-img">
<img src='<?php echo $poster ?>' height='150px' width='auto'>
</div>
<div class='mia-serie-info'>
<p><?php echo $nomeserie ?></p> <br>
<form action="" method="post" class="nostyle-form">
<input type="hidden" value="<?php echo $row1['serie'] ?>" name='serietodel'>
<input type="hidden" value="<?php echo $_SESSION['user']['id'] ?>" name='requestinguser'>
<input type="submit" class='remove-serie-btn' name='removeserie_btn' value='Rimuovi Serie'>
</form>
<form action='remove-episodes?serie=<?php echo $row1['serie'] ?>' method='post' class='nostyle-form'>
<input type='submit' class='remove-eps-btn' name='removeeps_btn' value='Rimuovi Episodi'>
</form>
</div>
</li>
<?php
}
?>
</ul>
</div>
</div>
<?php include('inc/sections/footer.php') ?>