Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
KLUGLUG
Blood Service Portal
Commits
4f430a52
Commit
4f430a52
authored
Oct 26, 2019
by
rama chandra
Browse files
Update insert.php
parent
72a9f631
Changes
1
Show whitespace changes
Inline
Side-by-side
admin/insert.php
View file @
4f430a52
...
...
@@ -8,10 +8,10 @@ if(isset($_POST['new']) && $_POST['new']==1)
$uname
=
$_REQUEST
[
'uname'
];
$blood
=
$_REQUEST
[
'blood'
];
$age
=
$_REQUEST
[
'age'
];
$
a
dd
r1
=
$_REQUEST
[
'
a
dd
r1
'
];
$dd
=
$_REQUEST
[
'dd'
];
$mobile
=
$_REQUEST
[
'mobile'
];
$city
=
$_REQUEST
[
'city'
];
$ins_query
=
"insert into bloo (`uname`,`blood`,`age`,`
a
dd
r1
`,`mobile`,`city`) values ('
$uname
','
$blood
','
$age
','
$
a
dd
r1
','
$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=
"
a
dd
r1
"
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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment