-
Notifications
You must be signed in to change notification settings - Fork 0
/
codehw3
41 lines (33 loc) · 1001 Bytes
/
codehw3
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
<!DOCTYPE html>
<html>
<head>
<h1>Code HW3</h1>
<style>
table {font-family: serif;
border: 2px solid black;
}
</style>
</head>
<body>
<?php
#Put book data into a multi-dimensional array
$books = array(
array ('Title', 'Author', 'Page Count', 'Cover', 'Price'),
array('PHP and MySQL Web Development', 'Luke Welling', '144', 'Paperback','31.63'),
array ('Web Design with HTML, CSS, JavaScript and jQuery', 'Jon Duckett', '135','Paperback', '41.23'),
array ('PHP Cookbook: Solutions & Examples for PHP Programmers', 'David Sklar', '14', 'Paperback', '40.88'),
array ('JavaScript and JQuery: Interactive Front-End Web Development', 'Jon Duckett', '251', 'Paperback', '22.09'),
array('Modern PHP: New Features and Good Practices', 'Josh Lockhart', '7', 'Paperback', '28.49'),
array ('Programming PHP', 'Kevin Tatroe', '26', 'Paperback', '28.96')
);
#echo "<pre>";
foreach($books as $row)
{
foreach($row as $piece)
echo "$piece";
echo "<br>";
}
echo "</pre>";
?>
</body>
</html>