Location: PHPKode > projects > Tcpdb > tcpdb/machine_type/list_machine_type.php
<html>
<table border="0">
<tr>
	<td><font face='verdana' color='#00066' size=2><strong>Machine Type</strong></td>
	<td><font face='verdana' color='#00066' size=2><strong>Delete</strong></td>
</tr>

<?php

require '../config.php';

 $sql = mysql_query("SELECT * FROM machine_type order by machine_type");

    while ($res = mysql_fetch_array($sql)) {
		       $machine_type_id = $res["machine_type_id"];
					 $machine_type = $res["machine_type"];
      

    print "<tr>\n";
		echo "  <td><font face='verdana' color='#00066' size=2>$machine_type</td>\n";
		echo "  <td><font face='verdana' color='#00066' size=2><a href=\"query_del_machine_type.php?machine_type_id=$machine_type_id\">Delete";
    print "</tr>\n\n";

    }
?>

Return current item: Tcpdb