Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
KLUGLUG
Blood Service Portal
Commits
f8c8b34c
Commit
f8c8b34c
authored
Nov 27, 2019
by
Nunna Satya Surya Venkat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
1dcb1ad9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
81 additions
and
0 deletions
+81
-0
select.php
select.php
+81
-0
No files found.
select.php
0 → 100644
View file @
f8c8b34c
<?php
include
(
'init.php'
)
?>
<?php
$obj
=
new
base_class
;
$result
=
$_GET
[
'type'
];
if
(
$result
==
'apos'
)
{
$re
=
'A+'
;
}
else
if
(
$result
==
'aneg'
)
{
$re
=
'A-'
;
}
else
if
(
$result
==
'bpos'
)
{
$re
=
'B+'
;
}
else
if
(
$result
==
'bneg'
)
{
$re
=
'B-'
;
}
else
if
(
$result
==
'abpos'
)
{
$re
=
'AB+'
;
}
else
if
(
$result
==
'abneg'
)
{
$re
=
'AB-'
;
}
else
if
(
$result
==
'opos'
)
{
$re
=
'O+'
;
}
else
if
(
$result
==
'oneg'
)
{
$re
=
'O-'
;
}
$co
=
1
;
if
(
$obj
->
Normal_Query
(
"SELECT * from bloo where blood LIKE '
$re
%' "
)){
$blood_result
=
$obj
->
fetch_all
();
echo
"<center>"
;
echo
"<table>
<tr>
<th>S.No</th>
<th>Name</th>
<th>Blood Group</th>
<th>Mobile Number</th>
</tr>"
;
foreach
(
$blood_result
as
$informations
)
:
$id
=
$informations
->
id
;
$name
=
$informations
->
uname
;
$blood
=
$informations
->
blood
;
$mobile
=
$informations
->
mobile
;
echo
"<tr><td>
$co
</td><td>
$name
</td><td>
$blood
</td><td>
$mobile
</td></tr>"
;
$co
+=
1
;
endforeach
;
}
echo
"</table>"
;
echo
"</center>"
;
?>
\ No newline at end of file
Write
Preview
Markdown
is supported
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