Location: PHPKode > projects > Tcpdb > tcpdb/subnet/list_subnet.php
<html>
<table border="0">
<tr>
	<td><font face='verdana' color='#00066' size=2><strong>Subnet</strong></td>
  <td><font face='verdana' color='#00066' size=2><strong>Subnet Name</strong></td> 
  <td><font face='verdana' color='#00066' size=2><strong>Location</strong></td>
	<td><font face='verdana' color='#00066' size=2><strong>Delete</strong></td>
</tr>

<?php

require '../config.php';

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

    while ($res = mysql_fetch_array($sql)) {
		       $subnet_id = $res["subnet_id"];
					 $tcpip = $res["tcpip"];
					 $subnet_name = $res["subnet_name"];
					 $location = $res["location"];
      

    print "<tr>\n";
		echo "  <td><font face='verdana' color='#00066' size=2>$tcpip</td>\n";
		echo "  <td><font face='verdana' color='#00066' size=2>$subnet_name</td>\n";
		echo "  <td><font face='verdana' color='#00066' size=2>$location</td>\n";
		echo "  <td><a href=\"query_del_subnet.php?subnet_id=$subnet_id&subnet_name=$subnet_name&location=$location\"><font face='verdana' size=2>Delete";
    print "</tr>\n\n";

    }
?>

Return current item: Tcpdb