PHP Classes

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

Recommend this page to a friend!
  Classes of Slavko Srakocic  >  B12 PHP FW  >  fwphp/01mater/fw_popel/lnktbl_delrec.php  >  Download  
File: fwphp/01mater/fw_popel/lnktbl_delrec.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: 553 bytes


Class file image Download
// J:\awww\apl\dev1\z30GB\04knjige\02popel\ch7books_in_out\lnktbl_delrec.php
* Page "returns" a book back to the library

// First see if the request contains the b orrowers ID
// Return to b ooks.php if not
$id = (int)$_REQUEST['borrower'];
$borrower = Model::getBorrower($id);
$borrower) {
header("Location: index.php");
// Return the book and redirect to b ooks.php
// If anything happens, the exception will be
// handled automatically
header("Location: index.php");

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