?> <!-- <section id="books"> <section id="my-shelf"> <h1>Tech-Related Books I've Read</h1> <ul> <?php echo getBookList(books(), true); ?> </ul> </section> <section id="wish-list"> <h1 class="toggler">My Wish List</h1> <ul> <?php echo getBookList(books(), false); ?> </ul> </section> </section> --> <?php $width = '720px'; $height = '500px'; ?> <!-- <div class="stacked" id="map" style="width:<?php echo $width; ?>
<?php require_once "GlobalVariables.php"; $bookQuery = "SELECT DISTINCT Book from `English`"; if (isset($_GET['lang']) && is_numeric($_GET['lang']) && strlen($_GET['lang']) < 2) { echo getBookList($_GET['lang']); } function checkBookList($num) { if ($num == 0) { return "<h1 style='text-align: center;'>Bible Book List</h1>"; } else { if ($num == 1) { return "<h1 style='text-align: center;'>圣经目录</h1>"; } else { if ($num == 2) { return "<h1 style='text-align: center;'>聖經目錄</h1>"; } else { return "<h1 style='text-align: center;'>Invalid Book List</h1>"; } } } } function getBookList($lang) { global $servername; global $databasename; global $username; global $password; global $bookQuery; $db = new mysqli($servername, $username, $password, $databasename);