-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtours.php
46 lines (37 loc) · 1.3 KB
/
tours.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
<?php
require_once("dbconnect.php");
$toursQuery = $dbc -> prepare("SELECT tourID, tourFeaturedName, tourFeaturedImage,
tourFeaturedDesc, tourFeaturedAlt, tourCost FROM tours ORDER BY tourName");
$toursQuery -> execute();
$pageTitle = "All of Our Premier Tours";
$PageClass = "home";
$heroImage = "craterlake.jpg";
include("header.php");
?>
<main>
<section id="hero">
<section id="herocontent">
<p>Tour List</p>
</section>
</section>
<section id="tourgrid">
<section id="mainhead">
<h1>Premier National Park</h1>
<p>Select the tour you want to book from the list below to
view details, including available dates.</p>
</section>
<section id="tourgrid">
<?php
while($tourResult = $toursQuery -> fetch()){
echo "<article>";
echo "<a href='tourdetail.php?tour=".$tourResult['tourID']."'>";
echo "<h2>". $tourResult['tourFeaturedName']."</h2>";
echo "<img src='images/".$tourResult['tourFeaturedImage']."'alt='".$tourResult['tourFeaturedAlt']."'>";
echo "<p>". $tourResult['tourFeaturedDesc']."</p>";
echo "<p>$". $tourResult['tourCost']."</p>" . "<p>$". "per person"."</p>";
echo "</a></article>";
}
?>
</section>
</main>
<?php include("footer.php");