<html>
<body><br/><br/>
<center><h2><u><i>Property Type</i></u></h2>
<?php
mysql_connect('localhost','root');
mysql_select_db('ibuyhome');
$row=mysql_query("select*from property_type");
echo "<table border='3px'>";
echo"<tr>";
echo"<th>property type</th>";
echo"<th>delete</th>";
echo"<th>Edit</th>";
echo"</tr>";
while($result=mysql_fetch_array($row))
{
echo"<tr>";
echo "<td>".$result['p_type']."</td>";
echo"<td> <a href='deleteproperty.php?id=".$result['p_id']."'onclick=\"return confirm('are you sure want to delete')\">delete</a></td>";
echo"<td> <a href='edit.php?id=".$result['p_id']."'>Edit</a></td>";
echo "</tr>";
}
echo"</table>";
?>
<br/>
</center>
</body>
</html>
<body><br/><br/>
<center><h2><u><i>Property Type</i></u></h2>
<?php
mysql_connect('localhost','root');
mysql_select_db('ibuyhome');
$row=mysql_query("select*from property_type");
echo "<table border='3px'>";
echo"<tr>";
echo"<th>property type</th>";
echo"<th>delete</th>";
echo"<th>Edit</th>";
echo"</tr>";
while($result=mysql_fetch_array($row))
{
echo"<tr>";
echo "<td>".$result['p_type']."</td>";
echo"<td> <a href='deleteproperty.php?id=".$result['p_id']."'onclick=\"return confirm('are you sure want to delete')\">delete</a></td>";
echo"<td> <a href='edit.php?id=".$result['p_id']."'>Edit</a></td>";
echo "</tr>";
}
echo"</table>";
?>
<br/>
</center>
</body>
</html>
0 comments:
Post a Comment