-
Notifications
You must be signed in to change notification settings - Fork 0
/
portfolio.php
33 lines (30 loc) · 1.02 KB
/
portfolio.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
<?php $page = "Portifolio"; ?>
<?php include_once('template/front/header.php'); ?>
<?php include_once('config/database.php'); ?>
<?php include_once('template/front/navbar.php');
?>
<section class="portfolio">
<h1 class="heading"> <span>my</span> work </h1>
<div class="box-container">
<?php
$a=1;
$stmt = $conn->prepare(
"SELECT * FROM portifolio");
$stmt->execute();
$portifolio = $stmt->fetchAll();
foreach($portifolio as $row)
{
?>
<div class="box">
<img src="storage/portifolio/<?php echo $row['portifolio_photo']; ?>" alt="">
<div class="content">
<h3><?php echo $row['portifolio_title']; ?></h3>
<p><?php echo $row['portifolio_desc']; ?></p>
<a href="https://<?php echo $row['portifolio_url']; ?>" class="btn"> Open Link <i class="fas fa-link"></i>
</a>
</div>
</div>
<?php } ?>
</div>
</section>
<?php include("template/front/navbar.php"); ?>