-
Notifications
You must be signed in to change notification settings - Fork 0
/
ajaxarama.php
60 lines (50 loc) · 2.16 KB
/
ajaxarama.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
<?php
require_once("baglan.php");
if ($_POST) {
$value = $_POST["value"];
if (!$value) {
} else {
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Paylaşım Platformu</title>
</head>
<body>
<div id="loading"><img src="/images/loading.gif" style="width:20%;height:20%; display:absolute; left:40%; top:40%;" alt="Başarılı!"></div>
<script src="jquery.js"></script>
<script>
function hideLoader() {
$('#loading').hide();
}
$(window).ready(hideLoader);
setTimeout(hideLoader, 20 * 1000);
</script>
</body>
</html> <?php
$row = $VeriTabaniBaglantisi->prepare("SELECT * FROM members WHERE adisoyadi LIKE ?");
$row->execute(array("%" . $value . "%"));
$goster = $row->fetchAll(PDO::FETCH_ASSOC);
$x = $row->rowCount();
if ($x) {
foreach ($goster as $liste) {
if ($liste['id'] == $id) {
}
?>
<div class="liste" style=" word-wrap: break-word; height:60px; width:400px; position:relative; left:0px; overflow:hidden; "> <a href="kullanici.php?id=<?php echo $liste['id']; ?>">
<img src="<?php echo $liste['avatar']; ?>" alt="proflresmi" style="height:60px; width:40px; position:absolute; left:5px; top:0px; border-radius:20px;">
<p style="position:absolute; left:60px; top:0px; height:25px;"> <?php echo $liste['adisoyadi']; ?> </p>
<p style="position:absolute; left:60px; top:25px; height:25px;">@<?php echo $liste['kullaniciadi']; ?></p>
</a></div>
<?php
}
} else {
}
}
} else {
echo '<meta http-equiv="refresh" content="0;URL=main.php">';
}
?>