-
Notifications
You must be signed in to change notification settings - Fork 0
/
kullaniciajax.php
48 lines (33 loc) · 1.1 KB
/
kullaniciajax.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
require_once("baglan.php");
if ($_POST) {
$limit = $_POST['limit'];
$offset = $_POST['offset'];
$kullaniciid = $_POST['id'];
$sayac = 0;
$paylasim = $VeriTabaniBaglantisi->prepare("SELECT * FROM resimlerson WHERE resim_paylasan_id=:id ORDER BY resim_id DESC LIMIT $limit OFFSET $offset ");
$paylasim->execute(["id" => $kullaniciid]);
$paylasimlar = $paylasim->fetchAll(PDO::FETCH_OBJ);
if ($paylasim->rowCount()) {
$sayac = 1;
foreach ($paylasimlar as $rowYorum) {
?>
<div id="paylasim">
<img src="Resimler/<?= $rowYorum->resim_ad ?>" alt="" class='resimboyut'>
<div id="yazi"><?= $rowYorum->resim_yazi ?></div>
<a href="yorumlar.php?id=<?php echo $rowYorum->resim_id; ?>">
<div id="yorumlarigor">Tüm Yorumları Görmek İçin Tıkla</div>
</a>
</div>
</div>
<script>
</script>
<?php
}
} else { ?>
<?php }
?>
<?php } else {
header("Location:index.php");
exit(); ?>
<?php } ?>