mirror of
https://github.com/serialexperiments0815/SerialsEnforcingInterface.git
synced 2026-11-07 12:55:29 +00:00
Project uploaded for storage and access.
This commit is contained in:
parent
c103b1e1a6
commit
9c573e1f7f
15 changed files with 568 additions and 0 deletions
48
catalog.php
Normal file
48
catalog.php
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE HTML>
|
||||
|
||||
<?php
|
||||
include('database_connection.txt');
|
||||
$conn = mysqli_connect($host, $user, $password, $db) or die("database connection has failed");
|
||||
$query = "select * from person_summary";
|
||||
$result = mysqli_query($conn, $query) or die("query has failed");
|
||||
|
||||
?>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Catalog</title>
|
||||
<link rel="stylesheet" href="graphics.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container-column">
|
||||
<div class="block_text">
|
||||
<h1>Catalog of persons</h1>
|
||||
</div>
|
||||
<div class="block">
|
||||
|
||||
<div class="container-row">
|
||||
|
||||
<?php
|
||||
while ($row = mysqli_fetch_object($result)) {
|
||||
ECHO" <div class='container-column'>
|
||||
<div class='block_image'>
|
||||
<img src='Images/", $row -> picture,"'/>
|
||||
|
||||
</div>
|
||||
<div class='block_image_text'>
|
||||
<p>", $row -> first_name,"</p>
|
||||
</div>
|
||||
</div>";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
<?php
|
||||
mysqli_close($conn);
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue