Tuesday, 24 March 2015

typeproperty.php

<?php
mysql_connect('localhost','root');
mysql_select_db('ibuyhome');
$id;
$row=mysql_query("select p_type from property_type where p_id=".$_GET['id']);
$result=mysql_fetch_array($row);
if(isset($_POST['update']))
{
mysql_query("update property_type set p_type='".$_POST['txt1']."'where p_id=".$_GET['id']);
header('location:delete.php');
}
?>
<html>
<form method="POST">
<body>
<center>
<h2>Enter Proprty Type</h2>
</body>
<table border="2" width="60%"align="center" style="background-color:#E0FFFF">
<tr><td>Enter Proprty Type</td><td><input type="text"name="txt1"value="<?php echo$result['p_type']?>"/>
</tr></td>


</table>
<br/>
<input type="submit"name="update"value="update"/>
</center>
</form>
</html>

0 comments:

Post a Comment