PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Shibly  >  Simple DAL  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: sample file
Class: Simple DAL
Simple MySQL database abstraction layer
Author: By
Last change: code updated
Date: 10 years ago
Size: 1,413 bytes


Class file image Download
$employeeDal = new EmployeeDAL();

header("Status: 200");
header("Location: EmployeeDAL.php");

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    <title>List Employee</title>
    <link rel="stylesheet" type="text/css" href="style.css">
<div id="container">
    <h1>List All Employee</h1>

    <table width="100%" class="listing_table">
= $employeeDal->getEmployee();
    foreach (
$get_all_employee as $result)

            <td><?php echo $result['Name'];?></td>
                <a href="employee_detail.php?id=<?php echo $result['EmployeeID'];?>">Edit</a>
                <a href="index.php?delete=<?php echo $result['EmployeeID']; ?>">Delete</a>

            <td colspan="3"><a href="employee_detail.php">Add New Employee</a> </td>

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