PHP Classes

File: fwphp/01mater/fw_popel/B1_tbl.php

Recommend this page to a friend!
  Classes of Slavko Srakocic  >  B12 PHP FW  >  fwphp/01mater/fw_popel/B1_tbl.php  >  Download  
File: fwphp/01mater/fw_popel/B1_tbl.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:
Date: 3 months ago
Size: 871 bytes


Class file image Download
// J:\awww\www\fwphp\01mater\fw_popel\B1_tbl.php
* Page lists Block1
// Get number of authors and issue the query
$authors = Model::getAuthors();

// display table
<a href="B1_cre_upd.php">Add Author...</a> &nbsp;Total authors: <?=Model::getAuthorCount()?>
<table width="100%" border="1" cellpadding="3">
<tr style="font-weight: bold">
<td>First Name</td>
<td>Last Name</td>
// Now iterate over every row and display it
while($a = $authors->fetch())
<td><a href="B1_cre_upd.php?author=<?=$a->id?>">Edit</a><td>

// Display footer

For more information send a message to info at phpclasses dot org.