Show sourcecode
The following files exists in this folder. Click to view.
admin/
comments.php
dbconnection.php
exercises/
exercises.php
img/
incl/
index.php
login.php
source.php
style/
viewsource.php
index.php
44 lines UTF-8 Windows (CRLF)
<?php
include("incl/config.php");
$title = "Webbserv1 :Start";
$pageId = "start";
$pageStyle = '
figure {
border-radius: 10px;
border-color:#333;
box-shadow: 10px 10px 5px #888;
color: #000;
}
';
include ('dbconnection.php');
?>
<?php include("incl/header.php"); ?>
<!-- sidans huvudinnehåll -->
<div id="content">
<article class="justify border">
<h1>Start</h1>
<figure class="right top">
<img src="img/jagohelge.jpg" alt="Per o helge">
<figcaption>
<p>Helge med kompisen Per</p>
</figcaption>
</figure>
<p>Hej och välkommen till Albins samlingssida i kursen
webbserverprogrammering 1.
</p>
<?php
$sql = "SELECT * FROM startinfo";
$stmt = $dbconn->prepare($sql);
$data = array();
$stmt->execute($data);
$output = "<p>";
$res = $stmt->fetch(PDO::FETCH_ASSOC);
$output .= $res['meddelande']."</p>";
echo "$output"; ?>
</article>
</div>
<?php include("incl/footer.php"); ?>