-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
48 lines (32 loc) · 1.04 KB
/
index.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 'includes/database.php';
require_once 'includes/article.php';
//$article=new Article;
$articles=$article->fetchall();
// echo '<pre>';
// print_r($articles);
// echo '</pre>';
#this is comment #
?>
<html>
<head>
<title>Blog</title>
<link type="text/css" rel="stylesheet" href="stylesheet/style.css" />
</head>
<body>
<div id="heading">
<h1>TechBug :: BLOG </h1>
</div>
<div id="container">
<?php
foreach($articles as $article){
echo '<p>';
echo 'Title:<a href=article.php?id='.$article['article_id'].'>'.$article['article_title'].'</a><br />';
echo 'Article:'.$article['article_content'].'<br />';
echo '</p>';
}
?>
<a href="#">article goes heres</a>
</div>
</body>
</html>