| Server IP : 103.234.187.230 / Your IP : 216.73.216.216 Web Server : Apache System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/img.g07/excel/ |
Upload File : |
<?php
//error_reporting(E_ALL ^ E_NOTICE);
//error_reporting(E_ALL);
require_once 'excel_reader2.php';
//$data = new Spreadsheet_Excel_Reader("example.xls");
$data = new Spreadsheet_Excel_Reader("RegCodeList.xls");
//echo $data->dump(true,true);
//exit;
$found = false ;
$rollNo = $_REQUEST['rollno'];
$rows = $data->rowcount($sheet_index=0);
//$data->colcount($sheet_index=0)
for($i=0; $i<=$rows; $i++) {
$value = trim($data->val($i,1));
if($rollNo == $value) {
$found = true;
break;
}
}
ob_clean();
if($found) {
header("location:response.php?found=1");
}else {
header("location:response.php?found=1");
}
exit;
?>