PHP Classes

File: usage.php

Recommend this page to a friend!
  Packages of Hasin Hayder   phpFormGenerator   usage.php   Download  
File: usage.php
Role: Example script
Content type: text/plain
Description: Example using the class
Class: phpFormGenerator
Generate code to process form and insert MySQL row
Author: By
Last change:
Date: 21 years ago
Size: 815 bytes
 

 

Contents

Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>PHP Report Generator</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
    <?

    include_once("phpFormGen.php");
    $prg = new phpFormGenerator();
        $prg->width = "100%";
    $prg->cellpad = "0";
    $prg->cellspace = "0";
    $prg->border = "0";

    mysql_connect("localhost","root","root");
    mysql_select_db("automation_system");

    $res = mysql_query("select * from classtest");
    $prg->mysql_resource = $res;
    $prg->db_host="localhost";
    $prg->db_name="automation_system";
    $prg->db_pwd="root";
    $prg->db_user="root";
    $prg->table_name="classtest";
    $prg->key_field="id";
    $prg->generateInsert();


    
    ?>
</body>
</html>