-
Notifications
You must be signed in to change notification settings - Fork 0
/
edit.php
54 lines (48 loc) · 1.31 KB
/
edit.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php session_start(); ?>
<?php
include 'db.php';
$owner_id =$_REQUEST['id'];
$result = mysql_query("SELECT * FROM owners WHERE id = '$owner_id'");
$test = mysql_fetch_array($result);
if (!$result)
{
die("Error: Data not found..");
}
$id=$test['id'] ;
$lname= $test['lname'] ;
$fname=$test['fname'] ;
$mi=$test['mi'] ;
$address=$test['address'] ;
$contact=$test['contact'] ;
?>
<p><h1>Owners Update</h1></p>
<form method="post" action="editecex.php">
<table width="342" border="0">
<tr>
<td width="107">Owners Id:</td>
<td width="315"><input type="text" name="id" value="<?php echo $id; ?>" /></td>
</tr>
<tr>
<td>Last Name:</td>
<td><input type="text" name="lname" value="<?php echo $lname; ?>"/></td>
</tr>
<tr>
<td>First Name:</td>
<td><input type="text" name="fname"value="<?php echo $fname; ?>" /></td>
</tr>
<tr>
<td>MI:</td>
<td><input type="text" name="mi" value="<?php echo $mi; ?>"/></td>
</tr>
<tr>
<td>Address:</td>
<td><input type="text" name="address" value="<?php echo $address; ?>" /></td>
</tr>
<tr>
<td>Contact:</td>
<td><input type="text" name="contact" value="<?php echo $contact; ?>"/></td></tr>
<tr>
<td> </td>
<td><input type="submit" name="save" value="Edit" /></td>
</tr>
</table>