-
Notifications
You must be signed in to change notification settings - Fork 0
/
gruplarimiGoster.php
43 lines (35 loc) · 1.44 KB
/
gruplarimiGoster.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
<?php
require_once("baglan.php");
if ($_POST) {
$yorumlar = $VeriTabaniBaglantisi->prepare("SELECT * FROM grup_uyelik WHERE uye_id=:id ORDER BY uyelik_id DESC");
$yorumlar->execute(["id" => $id]);
$yorum = $yorumlar->fetchAll(PDO::FETCH_OBJ);
$x = $yorumlar->rowCount();
if ($x) {
foreach ($yorum as $yas) {
$uyeid = $yas->uye_id;
$grupid = $yas->grup_id;
$grup_durum = $yas->uyelik_durum;
if ($uyeid == $id) {
$yorumlar = $VeriTabaniBaglantisi->prepare("SELECT * FROM grup WHERE grup_id=:id");
$yorumlar->execute(["id" => $grupid]);
$yorum = $yorumlar->fetchAll(PDO::FETCH_OBJ);
$x = $yorumlar->rowCount();
if ($x) {
foreach ($yorum as $yas) {
if ($grup_durum == 1) {
?>
<div class="grup_sayfasi" style="height:auto; border-bottom:1px solid black; box-sizing:border-box; margin-bottom:5px;" id="<?php echo $yas->grup_id ?>">
<div style=""><img src="Resimler/<?php echo $yas->grup_resmi ?>" alt="" style="width:50%; height:auto; max-height:300px;"></div>
<div style="height:50px;"><?php echo $yas->grup_adi ?></div>
</div>
<?php }
}
}
}
}
} else {
echo 'sorun var';
}
}
?>