Login   Register  
PHP Classes
elePHPant
Icontem

File: update.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Frank Cauley  >  PHP CRUD generator  >  update.php  >  Download  
File: update.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: 10 months ago
Size: 1,348 bytes
 

Contents

Class file image Download
<?php  
require_once("Class_.php"); 
require_once("../Class_crud.php");
 
 $crud = new crud;$crud->setTable(""); 
$crud->loadCrudArrays(); 
?> <!--end php for now --> 
<?php  
if (isset($_POST['submit'])) 
{ 
$ =  new ; 
$->updateRecord() 
 
;
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>Update  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="update.php" >">
<table width="773"  border="1" caption = "<h2>  Update   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;
	}	
?> 
</table>
<center><input type="submit" name="submit" value="submit Update"><input type ="reset" name="reset" value="reset"> </center>
 </form></body> 
<? } ?>