-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScuddha.php
More file actions
42 lines (30 loc) · 838 Bytes
/
Scuddha.php
File metadata and controls
42 lines (30 loc) · 838 Bytes
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
<?php
//!
//!
//!
//! This is the home page of my website
//!
//! It incudes the inc/functions.php file and uses all_paints_array() and get_item_html() from that file
//! to pull from the database and display the picture of my paintings with HTML. The pictures link
//! to a details page(details.php). The inc/header.php and inc/footer.php display the header and footer.
//!
//!
include("inc/functions.php");
$catalog = all_paints_array();
$pageTitle = "Paintings";
include("inc/header.php");
?>
<div class="wrapper">
<h1><?php echo $pageTitle; ?></h1>
<div class="picslist">
<ul id="gallery">
<?php
//$random = array_rand($catalog,2);
foreach ($catalog as $id => $item) {
echo get_item_html($id,$item);
}
?>
</ul>
</div>
</div>
<?php include("inc/footer.php"); ?>