-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathajax.php
More file actions
66 lines (60 loc) · 1.89 KB
/
ajax.php
File metadata and controls
66 lines (60 loc) · 1.89 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
require_once('owc-cms/connect/connect.php');
$symbolNo=$_GET['symbolNo'];
echo "<p>SN. $symbolNo</p>";
$error="";
$symbolNo=trim($symbolNo);
$symbolNo=str_replace( ' ', '', $symbolNo );
$symbolNo=preg_replace("/[^0-9]/", "", $symbolNo);
if(empty($symbolNo))
{
$error="Please Type Your Symbol Number";
}
else if(strlen($symbolNo)>10)
{
$error="Symbol Number Doesn't Match";
}
if(!empty($error))
{
echo '<p class="fail">'.$error.'</p>';
}
else
{
$college_msg ="Edukhabar.com- Lalitpur Congratulate you Securing";
$sql="SELECT * FROM `symbol` WHERE `symbol` = '$symbolNo' ";
$result=$Connect->runQuery($sql);
$count=$Connect->numRows($result);
if($count==1)
{
$row=$Connect->fetchArray($result);
if ($row['division']=='D')
{
//$div="DISTINCTION";
echo ucwords("<p class=\"pass\">$college_msg <span>DISTINCTION</span> . </p>");
}
else if($row['division']==1)
{
//$div="First Division";
echo ucwords("<p class=\"pass\"> $college_msg <span>First</span> Division . </p>");
}
else if($row['division']==2)
{
//$div="Second Division";
echo ucwords("<p class=\"pass\"> $college_msg <span>Second</span> Division. </p>");
}
else if($row['division']==3)
{
//$div="Passed";
echo ucwords("<p class=\"pass\"> $college_msg <span>Passed</span> . </p>");
}
else
{
echo ' <p class="fail">Sorry Your Symbol No. Not In This List...</p>';
}
}
else
{
echo ' <p class="fail">Sorry Your Symbol No. Not In This List...</p>';
}
}
?>