Commit 72a9f631 authored by rama chandra's avatar rama chandra
Browse files

Update edit.php

parent 233d9a17
......@@ -26,11 +26,11 @@ $id=$_REQUEST['id'];
$uname =$_REQUEST['uname'];
$blood=$_REQUEST['blood'];
$age =$_REQUEST['age'];
$addr1 =$_REQUEST['addr1'];
$dd =$_REQUEST['dd'];
$mobile=$_REQUEST['mobile'];
$city=$_REQUEST['city'];
$update="update bloo set uname='".$uname."', blood='".$blood."', age='".$age."', addr1='".$addr1."',mobile='".$mobile."',city='".$city."' where id='".$id."'";
$update="update bloo set uname='".$uname."', blood='".$blood."', age='".$age."', dd='".$dd."',mobile='".$mobile."',city='".$city."' where id='".$id."'";
$result1= mysqli_query($con, $update) or die ( mysqli_error());
$status = "Record Updated Successfully. </br></br><a href='view.php'>View Updated Record</a>";
echo '<p style="color:#FF0000;">'.$status.'</p>';
......@@ -43,7 +43,7 @@ echo '<p style="color:#FF0000;">'.$status.'</p>';
<p><input type="text" name="uname" placeholder="Enter Name" required value="<?php echo $row['uname'];?>" /></p>
<p><input type="text" name="blood" placeholder="Enter BLood Group" required value="<?php echo $row['blood'];?>" /></p>
<p><input type="text" name="age" placeholder="Enter Age" required value="<?php echo $row['age'];?>" /></p>
<p><input type="text" name="addr1" placeholder="Enter Address" required value="<?php echo $row['addr1'];?>" /></p>
<p><input type="text" name="dd" placeholder="Enter Last donated" required value="<?php echo $row['dd'];?>" /></p>
<p><input type="text" name="mobile" placeholder="Enter Mobile No" required value="<?php echo $row['mobile'];?>" /></p>
<p><input type="text" name="city" placeholder="Enter City" required value="<?php echo $row['city'];?>" /></p>
<p><input name="submit" type="submit" value="Update" /></p>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment