Commit 4f430a52 authored by rama chandra's avatar rama chandra
Browse files

Update insert.php

parent 72a9f631
......@@ -8,10 +8,10 @@ if(isset($_POST['new']) && $_POST['new']==1)
$uname =$_REQUEST['uname'];
$age =$_REQUEST['age'];
$addr1 =$_REQUEST['addr1'];
$dd =$_REQUEST['dd'];
$ins_query="insert into bloo (`uname`,`blood`,`age`,`addr1`,`mobile`,`city`) values ('$uname','$blood','$age','$addr1','$mobile','$city')";
$ins_query="insert into bloo (`uname`,`blood`,`age`,`dd`,`mobile`,`city`) values ('$uname','$blood','$age','$dd','$mobile','$city')";
mysqli_query($con,$ins_query) or die(mysql_error());
$status = "New Record Inserted Successfully.</br></br><a href='view.php'>View Inserted Record</a>";
......@@ -34,7 +34,7 @@ $status = "New Record Inserted Successfully.</br></br><a href='view.php'>View In
<p><input type="text" name="uname" placeholder="Enter Name" required /></p>
<p><input type="text" name="blood" placeholder="Enter BLood Group" required /></p>
<p><input type="text" name="age" placeholder="Enter Age" required /></p>
<p><input type="text" name="addr1" placeholder="Enter Address" required /></p>
<p><input type="text" name="dd" placeholder="Enter Last donated" required /></p>
<p><input type="text" name="mobile" placeholder="Enter Mobile No" required /></p>
<p><input type="text" name="city" placeholder="Enter City" required /></p>
<p><input name="submit" type="submit" value="insert" /></p>
Supports Markdown
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