PHP Classes

File: fwphp/glomodul/z_examples/ora11g/wishlist/public/wishlist.php

Recommend this page to a friend!
  Classes of Slavko Srakocic   B12 PHP FW   fwphp/glomodul/z_examples/ora11g/wishlist/public/wishlist.php   Download  
File: fwphp/glomodul/z_examples/ora11g/wishlist/public/wishlist.php
Role: Example script
Content type: text/plain
Description: Example script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change: Update of fwphp/glomodul/z_examples/ora11g/wishlist/public/wishlist.php
Date: 1 year ago
Size: 1,667 bytes
 

Contents

Class file image Download
<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Wish List Module</title>
        <link href="wishlist.css" type="text/css" rel="stylesheet" media="all" />
    </head>
    <body>
        <h1>
            Wish List of <?php echo $_GET['user']; ?> (master with psw)
        </h1>
        <?php
       
require_once("Includes/db.php");
       
$wishes = WishDB::getInstance()->get_wishes_by_wisher_name($_GET['user']);

        if (
0 === $wishes->count()) {
           
?>
<div class="error">
                The person <?php echo $_GET['user'] ?> is not found.
                Please check the spelling and try again.
            </div>
            <?php
       
} else {
           
?>
<table class="std">
                <tr>
                    <th>Item</th>
                    <th>Due Date</th>
                </tr>
                <?php
               
while ($wishes->valid()) {
                   
$row = $wishes->current();
                    if (
true === is_null($row["ID"])) {
                       
$wishes->next();
                        continue;
                    }
                   
?><tr>
                        <td>
                            <?php echo htmlentities($row['DESCRIPTION']); ?>
</td>
                        <td>
                            <?php echo htmlentities($row['DUE_DATE']); ?>
</td>
                    </tr>
                    <?php
                    $wishes
->next();
                }
               
?>
</table>
        <?php } ?>
</body>
</html>