-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost2.php
54 lines (54 loc) · 1.28 KB
/
post2.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
<div class="blogPost">
<div id="blogHeading">
<h1>
<?php
include 'connect.php';
$upit = 'SELECT title FROM post WHERE id = 2';
$rez = mysql_query($upit, $k);
while ($r = mysql_fetch_array($rez)) {
echo $r['title'];
}
?>
</h1>
<h2>
<?php
include 'connect.php';
$upit = 'SELECT date FROM post WHERE id = 2';
$rez = mysql_query($upit, $k);
while ($r = mysql_fetch_array($rez)) {
echo $r['date'];
}
?>
</h2>
</div>
<div id="blogPhoto">
<img src="img/photo9.jpg" alt="tourismEcology" />
</div>
<div class="blogText-blog">
<p>
<?php
include 'connect.php';
$upit = 'SELECT body FROM post WHERE id = 2';
$rez = mysql_query($upit, $k);
while ($r = mysql_fetch_array($rez)) {
$skraceno = substr($r['body'], 0,400);
echo $skraceno;
}
?>
</p>
</div>
<div class="blogButton">
<a href="blogPage2.php"><input type="button" class="blogBtn" name="blogBtn" value="read full article"></a>
</div>
<div id="blogSocial">
<div class="social">
<i class="fa fa-facebook"></i>
<i class="fa fa-twitter"></i>
<i class="fa fa-pinterest-p"></i>
<i class="fa fa-instagram"></i>
</div>
<div id="blogRss" class="right">
<a href="rss.xml"><i class="fa fa-rss fa-2x"></i>Follow RSS</a>
</div>
</div>
</div>