-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathviewaadhaar.php
More file actions
43 lines (35 loc) · 870 Bytes
/
viewaadhaar.php
File metadata and controls
43 lines (35 loc) · 870 Bytes
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
<?php
include('include/connection.php');
$comp1=strtolower($_REQUEST['comp1']);
if(isset($_REQUEST['isEdit']))
{
$fm_id = $_REQUEST['isEdit'];
}
if($comp1!="")
{
if(isset($_REQUEST['isEdit']))
{
$sql_pin1="select * from tbl_farmers where fm_aadhar='".$comp1."' AND `fm_id`!='".$fm_id."' ";
}
else
{
$sql_pin1="select * from tbl_farmers where fm_aadhar='$comp1'";
}
$res_pin1=mysqli_query($db_con,$sql_pin1) or die(mysqli_error($db_con));
$tot_pin1=mysqli_num_rows($res_pin1);
?>
<?php
if($tot_pin1==0)
{
?>
<input type="text" id="mailid" style="display:none" value="1" /><span style="color:#063"></span>
<?php
}
else
{
?>
<input type="text" id="mailid" style="display:none" value="2" /> <span>Aadhaar No. already in use</span>
<?php
}
}
?>