-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcitaj-clanak.php
93 lines (85 loc) · 3.04 KB
/
citaj-clanak.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
include 'connect.php';
define('UPLPATH', 'slike-clanci/');
$id = $_GET['id'];
$query = "SELECT * FROM novosti WHERE id='$id'";
$result = mysqli_query($dbc, $query) or die(mysqli_error($dbc));
$rezultat = mysqli_query($dbc, $query) or die(mysqli_error($dbc));
$red = mysqli_fetch_array($rezultat);
$print = $red['naslov'];
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Cache-control" content="no-cache">
<link rel=icon href=img/favicon.png sizes="64x64" type="image/png">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap" rel="stylesheet">
<link href="animate.css" type="text/css" rel="stylesheet" />
<link href="style.css" type="text/css" rel="stylesheet" />
<?php echo '<title>';
echo $print;
echo '</title>'; ?>
</head>
<body>
<?php
include_once("header.php");
?>
<div class="header-razmak">
</div>
<article>
<div class="wrapper">
<div class="sekcije animated fadeIn">
<div class="sekcije-razmak">
<hr class="sekcije-hr">
</div>
<div class="sekcija-kategorija">
<?php
while($row = mysqli_fetch_array($result)){
$id = $row['id'];
echo '<h2 class="animated fadeInUp">';
echo $row['kategorija'];
echo '</h2>';
echo '<br><br>';
echo '<h1 class="animated fadeInUp">';
echo $row['naslov'];
echo '</h1>';
echo '<br>';
echo '<p class="animated fadeInUp">AUTOR: ';
echo $row['autor'];
echo '</p>';
echo '<p class="animated fadeInUp">OBJAVLJENO: ';
echo $row['datum'];
echo '</p>';
echo '<br>';
echo '<div class="sekcija-kategorija-poredak">';
echo '<div class="kategorija-clanci">';
echo '<img src="'.UPLPATH.$row['slika'].'" width="100%" height="100%" />';
echo '<br><br>';
echo '<br>';
echo '<p>';
echo $row['sazetak'];
echo '</p>';
echo '<br><br>';
echo '<p>';
echo $row['tekst'];
echo '</p>';
echo '<br>';
echo '</div>';
}
echo '</div>';
?>
<div class="sekcije-razmak">
<hr class="sekcije-hr">
</div>
</div>
</article>
<footer>
<center>
<h4>Izrada:</h4>
<h4>Luka Rukavina </h4>
<p>lrukavina@tvz.hr</p>
</center>
</footer>
</body>
</html>