PHP Classes

File: delete.php

Recommend this page to a friend!
  Classes of Frank Cauley   PHP CRUD generator   delete.php   Download  
File: delete.php
Role: Sample output
Content type: text/plain
Description: Auxiliary script
Class: PHP CRUD generator
Generate classes to manipulate MySQL table records
Author: By
Last change:
Date: 11 years ago
Size: 1,326 bytes
 

Contents

Class file image Download
<?php require_once("Class_.php"); require_once("../Class_crud.php"); $crud = new crud; $crud->setTable(""); $crud->loadCrudArrays(); if (isset($_POST['submit'])) { $ = new ; $->deleteRecord($_POST['']); header("Location:index.php"); } else { } ?> <!--end of php for now--> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Delete record</title> <h2> Gray and White Computing MySql Table Control Generation System</h2> <img src="../companylogo.jpg" alt="Gray and White Logo" width="161" height="80" longdesc=" " > </head> <body> <form name="inputform" method="post" action="delete.php" />"> <table width="773" border="1" caption = "<h2> Delete Record</h2>"> <?php // back into php $crud->getrecord($_GET['']); $fields = $crud->field_name_array; $type = $crud->field_type_array; $field_count= count($fields); for($i=0;$i < $field_count;$i++) { $line = $crud->compose_Html_line($fields[$i],$type[$i],"true"); echo $line; } ?> nl</table> <center><input type="submit" name="submit" value="submit Delete"><input type ="reset" name="reset" value="reset"> </center> </form></body> <? } ?>