Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
ynormeco
/
.trash
/
sattaadmin
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/ynormeco/.trash/sattaadmin/rajdhani-starline.php
<?php include("inc/config.php"); $conn = connect_database(); session_start(); $admin = isset($_SESSION['login']) ? $_SESSION['login'] : NULL; if(!isset($_SESSION['login'])) { header("location: pages/logout.php"); exit; } $query = mysqli_query($conn, "SELECT * FROM `tbl_admin` WHERE `login_id` = '$admin' "); if ($row = mysqli_fetch_array($query)) { $fname = $row['name']; //$oname = $row['ceter_head']; } else { header('Location: index.php'); } $que = mysqli_query($conn, "SELECT * FROM `c_profile` "); if ($row = mysqli_fetch_array($que)) { $cname = $row['c_name']; } ?> <!DOCTYPE html> <html lang="en"> <!-- BEGIN HEAD --> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta content="width=device-width, initial-scale=1" name="viewport" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Rajdhani Starline - Satta Matka</title> <!-- google font --> <link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" rel="stylesheet" type="text/css" /> <!--bootstrap --> <link href="assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <link href="assets/plugins/summernote/summernote.css" rel="stylesheet"> <!-- Material Design Lite CSS --> <!-- icons --> <link href="fonts/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css" /> <link href="fonts/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/> <link href="fonts/material-design-icons/material-icon.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" href="assets/plugins/material/material.min.css"> <link rel="stylesheet" href="assets/css/material_style.css"> <!-- inbox style --> <link href="assets/css/pages/inbox.min.css" rel="stylesheet" type="text/css" /> <!-- Theme Styles --> <link href="assets/css/theme/light/theme_style.css" rel="stylesheet" id="rt_style_components" type="text/css" /> <link href="assets/css/plugins.min.css" rel="stylesheet" type="text/css" /> <link href="assets/css/theme/light/style.css" rel="stylesheet" type="text/css" /> <link href="assets/css/responsive.css" rel="stylesheet" type="text/css" /> <link href="assets/css/theme/light/theme-color.css" rel="stylesheet" type="text/css" /> <script src="js/jquery.min.js"></script> <script type="text/javascript" src="js/varify-user.js"></script> <link rel="shortcut icon" href="https://www.ynorme.com/images/favicons/ynormefavicon.png" alt="websitedesign icon" type='image/x-icon' /> </head> <!-- END HEAD --> <body class="page-header-fixed sidemenu-closed-hidelogo page-content-white page-md header-white white-sidebar-color logo-indigo"> <div class="page-wrapper"> <!-- start header --> <div class="page-header navbar navbar-fixed-top"> <div class="page-header-inner "> <!-- logo start --> <div class="page-logo"> <a href="#"> <span class="logo-default" >Satta Matka</span> </a> </div> <!-- logo end --> <ul class="nav navbar-nav navbar-left in"> <li><a href="#" class="menu-toggler sidebar-toggler"><i class="icon-menu"></i></a></li> </ul> <!-- start mobile menu --> <a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse"> <span></span> </a> <!-- end mobile menu --> <!-- start header menu --> <div class="top-menu"> <ul class="nav navbar-nav pull-right"> <li><a href="javascript:;" class="fullscreen-btn"><i class="fa fa-arrows-alt"></i></a></li> <!-- start language menu --> <!-- end message dropdown --> <!-- start manage user dropdown --> <li class="dropdown dropdown-user"> <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true"> <img alt="" class="img-circle " src="img/images.png" /> <span class="username username-hide-on-mobile"> <?php echo $fname; ?> </span> <i class="fa fa-angle-down"></i> </a> <ul class="dropdown-menu dropdown-menu-default"> <li> <a href="change_password.php"> <i class="icon-user"></i> Change Password </a> </li> <li> <a href="pages/logout.php"> <i class="icon-logout"></i> Log Out </a> </li> </ul> </li> </ul> </div> </div> </div> <!-- end header --> <!-- start page container --> <div class="page-container"> <!-- start sidebar menu --> <div class="sidebar-container"> <div class="sidemenu-container navbar-collapse collapse fixed-menu"> <div id="remove-scroll"> <ul class="sidemenu page-header-fixed" data-keep-expanded="false" data-auto-scroll="true" data-slide-speed="200" style="padding-top: 20px"> <li class="sidebar-toggler-wrapper hide"> <div class="sidebar-toggler"> <span></span> </div> </li> <li class="sidebar-user-panel"> <div class="user-panel"> <div class="pull-left image"> <img src="img/images.png" class="img-circle user-img-circle" alt="User Image" /> </div> <div class="pull-left info"> <p style="text-transform:capitalize;"> <?php echo $fname; ?></p> <a href="#"><i class="fa fa-circle user-online"></i><span class="txtOnline"> Online</span></a> </div> </div> </li> <li class="nav-item start active open"> <a href="dashboard.php" class="nav-link nav-toggle"> <i class="material-icons">dashboard</i> <span class="title">Dashboard</span> <span class="selected"></span> </a> </li> <li class="nav-item"> <a href="market_name.php" class="nav-link nav-toggle"> <i class="material-icons">slideshow</i> <span class="title">Market</span> </a> </li> <li class="nav-item"> <a href="live_update.php" class="nav-link nav-toggle"> <i class="material-icons">slideshow</i> <span class="title">Market Result</span> </a> </li><li class="nav-item"> <a href="kalyan-starline.php" class="nav-link nav-toggle"> <i class="material-icons">slideshow</i> <span class="title">Kalyan Patti Starline</span> </a> </li> <li class="nav-item"> <a href="agentreg.php" class="nav-link nav-toggle"> <i class="material-icons">slideshow</i> <span class="title">Market Agent</span> </a> </li> <li class="nav-item"> <a href="time_table.php" class="nav-link nav-toggle"> <i class="material-icons">widgets</i> <span class="title">Timetable</span> </a> </li> <li class="nav-item"> <a href="guessing.php" class="nav-link nav-toggle"> <i class="material-icons">school</i> <span class="title">Register Member</span> </a> </li> <li class="nav-item"> <a href="guessing-list.php" class="nav-link nav-toggle"> <i class="material-icons">school</i> <span class="title">Guessing Forum</span> </a> </li> <li class="nav-item"> <a href="weekly-chart.php" class="nav-link nav-toggle"> <i class="material-icons">local_library</i> <span class="title">Weekly Chart</span> </a> </li> <li class="nav-item"> <a href="notice-box.php" class="nav-link nav-toggle"> <i class="material-icons">group</i> <span class="title">Notice Box</span> </a> </li> <li class="nav-item"> <a href="ads.php" class="nav-link nav-toggle"> <i class="material-icons">school</i> <span class="title">Ads Box</span> </a> </li> <li class="nav-item"> <a href="final_ank.php" class="nav-link nav-toggle"><i class="material-icons">widgets</i> <span class="title">Lucky Number</span> </a> </li> <li class="nav-item"> <a href="" class="nav-link nav-toggle"> <i class="material-icons">business</i> <span class="title">Ank Open Close Jodi</span><span class="arrow"></span> </a> <ul class="sub-menu"> <li class="nav-item"> <a href="ank_jodi_date.php" class="nav-link "> <span class="title">AOCJ Date</span> </a> </li> <li class="nav-item"> <a href="ank_jodi.php" class="nav-link "> <span class="title">Ank Open Close Jodi</span> </a> </li> </ul> </li> <li class="nav-item"> <a href="whatsapp.php" class="nav-link nav-toggle"> <i class="material-icons">slideshow</i> <span class="title">Whatsapp </span> </a> </li> </ul> </div> </div> </div> <!-- end sidebar menu --> <!-- start page content --> <div class="page-content-wrapper"> <div class="page-content"> <div class="page-bar"> <div class="page-title-breadcrumb"> <div class=" pull-left"> <div class="page-title">Rajdhani Starline</div> </div> <ol class="breadcrumb page-breadcrumb pull-right"> <li><i class="fa fa-home"></i> <a class="parent-item" href="dashboard.php">Home</a> <i class="fa fa-angle-right"></i> </li> <li class="active">Rajdhani Starline</li> </ol> </div> </div> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12 col-12"> <div class="card-box"> <?php $login = isset($_GET['delete']) ? $_GET['delete'] : NULL; if($login == 'success') { echo "<p align='center'> <span style='color:#276214; font-size:15px;'> <strong> Delete Succesfully</strong> </span> </p>"; } $login2 = isset($_GET['update']) ? $_GET['update'] : NULL; if($login2 == 'success') { echo "<p align='center'> <span style='color:#276214; font-size:15px;'> <strong> Updated Succesfully</strong> </span> </p>"; } $login1 = isset($_GET['insert']) ? $_GET['insert'] : NULL; if($login1 == 'success') { echo "<p align='center'> <span style='color:#276214; font-size:15px;'> <strong> Added Succesfully</strong> </span> </p>"; } date_default_timezone_set("Asia/Calcutta"); $currdate = date("Y-m-d"); ?> <div class="table-responsive"> <table class="table table-striped custom-table table-hover"> <thead> <tr> <th width="20%" >Market Time</th> <th width="80%" colspan="2">Result</th> </tr> </thead> <tbody> <tr> <td>09:30 AM</td> <?php $snoo1 = mysqli_num_rows(mysqli_query($conn,"SELECT * FROM `rajdhani_starline_result` where `market_time` = '09:30 AM' and `entrydate` = '$currdate' ")); if($snoo1 == 0) { echo "<form class='form-horizontal' id='simple_form_1' method='POST' action='pages/insert_kuber_starline_result.php' 'onSubmit='return chk();' autocomplete='off'>"; echo "<input type='hidden' name='mtime' placeholder='Jodi' value='09:30 AM' style='width:100%; font-size:12px;' />"; echo "<td style='width:80%;'><input type='text' name='result' placeholder='' style='width:100%; font-size:12px;' /></td> <td style='width:30%;'><input type='submit' name='status' class='btn btn-success' value='Save' ></td>"; echo "</form>"; } else { $star01 = mysqli_query($conn,"SELECT * FROM `rajdhani_starline_result` where `market_time` = '09:30 AM' and `entrydate` = '$currdate' "); if($rowstar01 = mysqli_fetch_array($star01)) { echo "<form class='form-horizontal' id='simple_form_1' method='POST' action='pages/update_kuber_starline_result.php' 'onSubmit='return chk();' autocomplete='off'>"; echo "<input type='hidden' name='mtime' placeholder='Jodi' value='09:30 AM' style='width:100%; font-size:12px;' />"; echo "<td style='width:80%;'><input type='text' name='result' placeholder='' value='".$rowstar01['result']."' style='width:100%; font-size:12px;' /></td> <td style='width:30%;'><input type='submit' name='status' class='btn btn-success' value='Save' ></td>"; echo "</form>"; } } ?> </tr> <tr> <td>10:30 AM</td> <?php $snoo1 = mysqli_num_rows(mysqli_query($conn,"SELECT * FROM `rajdhani_starline_result` where `market_time` = '10:30 AM' and `entrydate` = '$currdate' ")); if($snoo1 == 0) { echo "<form class='form-horizontal' id='simple_form_1' method='POST' action='pages/insert_kuber_starline_result.php' 'onSubmit='return chk();' autocomplete='off'>"; echo "<input type='hidden' name='mtime' placeholder='Jodi' value='10:30 AM' style='width:100%; font-size:12px;' />"; echo "<td style='width:80%;'><input type='text' name='result' placeholder='' style='width:100%; font-size:12px;' /></td> <td style='width:30%;'><input type='submit' name='status' class='btn btn-success' value='Save' ></td>"; echo "</form>"; } else { $star01 = mysqli_query($conn,"SELECT * FROM `rajdhani_starline_result` where `market_time` = '10:30 AM' and `entrydate` = '$currdate' "); if($rowstar01 = mysqli_fetch_array($star01)) { echo "<form class='form-horizontal' id='simple_form_1' method='POST' action='pages/update_kuber_starline_result.php' 'onSubmit='return chk();' autocomplete='off'>"; echo "<input type='hidden' name='mtime' placeholder='Jodi' value='10:30 AM' style='width:100%; font-size:12px;' />"; echo "<td style='width:80%;'><input type='text' name='result' placeholder='' value='".$rowstar01['result']."' style='width:100%; font-size:12px;' /></td> <td style='width:30%;'><input type='submit' name='status' class='btn btn-success' value='Save' ></td>"; echo "</form>"; } } ?> </tr> <tr> <td>11:30 AM</td> <?php $snoo1 = mysqli_num_rows(mysqli_query($conn,"SELECT * FROM `rajdhani_starline_result` where `market_time` = '11:30 AM' and `entrydate` = '$currdate' ")); if($snoo1 == 0) { echo "<form class='form-horizontal' id='simple_form_1' method='POST' action='pages/insert_kuber_starline_result.php' 'onSubmit='return chk();' autocomplete='off'>"; echo "<input type='hidden' name='mtime' placeholder='Jodi' value='11:30 AM' style='width:100%; font-size:12px;' />"; echo "<td style='width:80%;'><input type='text' name='result' placeholder='' style='width:100%; font-size:12px;' /></td> <td style='width:30%;'><input type='submit' name='status' class='btn btn-success' value='Save' ></td>"; echo "</form>"; } else { $star01 = mysqli_query($conn,"SELECT * FROM `rajdhani_starline_result` where `market_time` = '11:30 AM' and `entrydate` = '$currdate' "); if($rowstar01 = mysqli_fetch_array($star01)) { echo "<form class='form-horizontal' id='simple_form_1' method='POST' action='pages/update_kuber_starline_result.php' 'onSubmit='return chk();' autocomplete='off'>"; echo "<input type='hidden' name='mtime' placeholder='Jodi' value='11:30 AM' style='width:100%; font-size:12px;' />"; echo "<td style='width:80%;'><input type='text' name='result' placeholder='' value='".$rowstar01['result']."' style='width:100%; font-size:12px;' /></td> <td style='width:30%;'><input type='submit' name='status' class='btn btn-success' value='Save' ></td>"; echo "</form>"; } } ?> </tr> <tr> <td>12:30 PM</td> <?php $snoo1 = mysqli_num_rows(mysqli_query($conn,"SELECT * FROM `rajdhani_starline_result` where `market_time` = '12:30 PM' and `entrydate` = '$currdate' ")); if($snoo1 == 0) { echo "<form class='form-horizontal' id='simple_form_1' method='POST' action='pages/insert_kuber_starline_result.php' 'onSubmit='return chk();' autocomplete='off'>"; echo "<input type='hidden' name='mtime' placeholder='Jodi' value='12:30 PM' style='width:100%; font-size:12px;' />"; echo "<td style='width:80%;'><input type='text' name='result' placeholder='' style='width:100%; font-size:12px;' /></td> <td style='width:30%;'><input type='submit' name='status' class='btn btn-success' value='Save' ></td>"; echo "</form>"; } else { $star01 = mysqli_query($conn,"SELECT * FROM `rajdhani_starline_result` where `market_time` = '12:30 PM' and `entrydate` = '$currdate' "); if($rowstar01 = mysqli_fetch_array($star01)) { echo "<form class='form-horizontal' id='simple_form_1' method='POST' action='pages/update_kuber_starline_result.php' 'onSubmit='return chk();' autocomplete='off'>"; echo "<input type='hidden' name='mtime' placeholder='Jodi' value='12:30 PM' style='width:100%; font-size:12px;' />"; echo "<td style='width:80%;'><input type='text' name='result' placeholder='' value='".$rowstar01['result']."' style='width:100%; font-size:12px;' /></td> <td style='width:30%;'><input type='submit' name='status' class='btn btn-success' value='Save' ></td>"; echo "</form>"; } } ?> </tr> <tr> <td>01:30 PM</td> <?php $snoo1 = mysqli_num_rows(mysqli_query($conn,"SELECT * FROM `rajdhani_starline_result` where `market_time` = '01:30 PM' and `entrydate` = '$currdate' ")); if($snoo1 == 0) { echo "<form class='form-horizontal' id='simple_form_1' method='POST' action='pages/insert_kuber_starline_result.php' 'onSubmit='return chk();' autocomplete='off'>"; echo "<input type='hidden' name='mtime' placeholder='Jodi' value='01:30 PM' style='width:100%; font-size:12px;' />"; echo "<td style='width:80%;'><input type='text' name='result' placeholder='' style='width:100%; font-size:12px;' /></td> <td style='width:30%;'><input type='submit' name='status' class='btn btn-success' value='Save' ></td>"; echo "</form>"; } else { $star01 = mysqli_query($conn,"SELECT * FROM `rajdhani_starline_result` where `market_time` = '01:30 PM' and `entrydate` = '$currdate' "); if($rowstar01 = mysqli_fetch_array($star01)) { echo "<form class='form-horizontal' id='simple_form_1' method='POST' action='pages/update_kuber_starline_result.php' 'onSubmit='return chk();' autocomplete='off'>"; echo "<input type='hidden' name='mtime' placeholder='Jodi' value='01:30 PM' style='width:100%; font-size:12px;' />"; echo "<td style='width:80%;'><input type='text' name='result' placeholder='' value='".$rowstar01['result']."' style='width:100%; font-size:12px;' /></td> <td style='width:30%;'><input type='submit' name='status' class='btn btn-success' value='Save' ></td>"; echo "</form>"; } } ?> </tr> <tr> <td>02:30 PM</td> <?php $snoo1 = mysqli_num_rows(mysqli_query($conn,"SELECT * FROM `rajdhani_starline_result` where `market_time` = '02:30 PM' and `entrydate` = '$currdate' ")); if($snoo1 == 0) { echo "<form class='form-horizontal' id='simple_form_1' method='POST' action='pages/insert_kuber_starline_result.php' 'onSubmit='return chk();' autocomplete='off'>"; echo "<input type='hidden' name='mtime' placeholder='Jodi' value='02:30 PM' style='width:100%; font-size:12px;' />"; echo "<td style='width:80%;'><input type='text' name='result' placeholder='' style='width:100%; font-size:12px;' /></td> <td style='width:30%;'><input type='submit' name='status' class='btn btn-success' value='Save' ></td>"; echo "</form>"; } else { $star01 = mysqli_query($conn,"SELECT * FROM `rajdhani_starline_result` where `market_time` = '02:30 PM' and `entrydate` = '$currdate' "); if($rowstar01 = mysqli_fetch_array($star01)) { echo "<form class='form-horizontal' id='simple_form_1' method='POST' action='pages/update_kuber_starline_result.php' 'onSubmit='return chk();' autocomplete='off'>"; echo "<input type='hidden' name='mtime' placeholder='Jodi' value='02:30 PM' style='width:100%; font-size:12px;' />"; echo "<td style='width:80%;'><input type='text' name='result' placeholder='' value='".$rowstar01['result']."' style='width:100%; font-size:12px;' /></td> <td style='width:30%;'><input type='submit' name='status' class='btn btn-success' value='Save' ></td>"; echo "</form>"; } } ?> </tr> <tr> <td>03:30 PM</td> <?php $snoo1 = mysqli_num_rows(mysqli_query($conn,"SELECT * FROM `rajdhani_starline_result` where `market_time` = '03:30 PM' and `entrydate` = '$currdate' ")); if($snoo1 == 0) { echo "<form class='form-horizontal' id='simple_form_1' method='POST' action='pages/insert_kuber_starline_result.php' 'onSubmit='return chk();' autocomplete='off'>"; echo "<input type='hidden' name='mtime' placeholder='Jodi' value='03:30 PM' style='width:100%; font-size:12px;' />"; echo "<td style='width:80%;'><input type='text' name='result' placeholder='' style='width:100%; font-size:12px;' /></td> <td style='width:30%;'><input type='submit' name='status' class='btn btn-success' value='Save' ></td>"; echo "</form>"; } else { $star01 = mysqli_query($conn,"SELECT * FROM `rajdhani_starline_result` where `market_time` = '03:30 PM' and `entrydate` = '$currdate' "); if($rowstar01 = mysqli_fetch_array($star01)) { echo "<form class='form-horizontal' id='simple_form_1' method='POST' action='pages/update_kuber_starline_result.php' 'onSubmit='return chk();' autocomplete='off'>"; echo "<input type='hidden' name='mtime' placeholder='Jodi' value='03:30 PM' style='width:100%; font-size:12px;' />"; echo "<td style='width:80%;'><input type='text' name='result' placeholder='' value='".$rowstar01['result']."' style='width:100%; font-size:12px;' /></td> <td style='width:30%;'><input type='submit' name='status' class='btn btn-success' value='Save' ></td>"; echo "</form>"; } } ?> </tr> <tr> <td>04:30 PM</td> <?php $snoo1 = mysqli_num_rows(mysqli_query($conn,"SELECT * FROM `rajdhani_starline_result` where `market_time` = '04:30 PM' and `entrydate` = '$currdate' ")); if($snoo1 == 0) { echo "<form class='form-horizontal' id='simple_form_1' method='POST' action='pages/insert_kuber_starline_result.php' 'onSubmit='return chk();' autocomplete='off'>"; echo "<input type='hidden' name='mtime' placeholder='Jodi' value='04:30 PM' style='width:100%; font-size:12px;' />"; echo "<td style='width:80%;'><input type='text' name='result' placeholder='' style='width:100%; font-size:12px;' /></td> <td style='width:30%;'><input type='submit' name='status' class='btn btn-success' value='Save' ></td>"; echo "</form>"; } else { $star01 = mysqli_query($conn,"SELECT * FROM `rajdhani_starline_result` where `market_time` = '04:30 PM' and `entrydate` = '$currdate' "); if($rowstar01 = mysqli_fetch_array($star01)) { echo "<form class='form-horizontal' id='simple_form_1' method='POST' action='pages/update_kuber_starline_result.php' 'onSubmit='return chk();' autocomplete='off'>"; echo "<input type='hidden' name='mtime' placeholder='Jodi' value='04:30 PM' style='width:100%; font-size:12px;' />"; echo "<td style='width:80%;'><input type='text' name='result' placeholder='' value='".$rowstar01['result']."' style='width:100%; font-size:12px;' /></td> <td style='width:30%;'><input type='submit' name='status' class='btn btn-success' value='Save' ></td>"; echo "</form>"; } } ?> </tr> <tr> <td>05:30 PM</td> <?php $snoo1 = mysqli_num_rows(mysqli_query($conn,"SELECT * FROM `rajdhani_starline_result` where `market_time` = '05:30 PM' and `entrydate` = '$currdate' ")); if($snoo1 == 0) { echo "<form class='form-horizontal' id='simple_form_1' method='POST' action='pages/insert_kuber_starline_result.php' 'onSubmit='return chk();' autocomplete='off'>"; echo "<input type='hidden' name='mtime' placeholder='Jodi' value='05:30 PM' style='width:100%; font-size:12px;' />"; echo "<td style='width:80%;'><input type='text' name='result' placeholder='' style='width:100%; font-size:12px;' /></td> <td style='width:30%;'><input type='submit' name='status' class='btn btn-success' value='Save' ></td>"; echo "</form>"; } else { $star01 = mysqli_query($conn,"SELECT * FROM `rajdhani_starline_result` where `market_time` = '05:30 PM' and `entrydate` = '$currdate' "); if($rowstar01 = mysqli_fetch_array($star01)) { echo "<form class='form-horizontal' id='simple_form_1' method='POST' action='pages/update_kuber_starline_result.php' 'onSubmit='return chk();' autocomplete='off'>"; echo "<input type='hidden' name='mtime' placeholder='Jodi' value='05:30 PM' style='width:100%; font-size:12px;' />"; echo "<td style='width:80%;'><input type='text' name='result' placeholder='' value='".$rowstar01['result']."' style='width:100%; font-size:12px;' /></td> <td style='width:30%;'><input type='submit' name='status' class='btn btn-success' value='Save' ></td>"; echo "</form>"; } } ?> </tr> <tr> <td>06:30 PM</td> <?php $snoo1 = mysqli_num_rows(mysqli_query($conn,"SELECT * FROM `rajdhani_starline_result` where `market_time` = '06:30 PM' and `entrydate` = '$currdate' ")); if($snoo1 == 0) { echo "<form class='form-horizontal' id='simple_form_1' method='POST' action='pages/insert_kuber_starline_result.php' 'onSubmit='return chk();' autocomplete='off'>"; echo "<input type='hidden' name='mtime' placeholder='Jodi' value='06:30 PM' style='width:100%; font-size:12px;' />"; echo "<td style='width:80%;'><input type='text' name='result' placeholder='' style='width:100%; font-size:12px;' /></td> <td style='width:30%;'><input type='submit' name='status' class='btn btn-success' value='Save' ></td>"; echo "</form>"; } else { $star01 = mysqli_query($conn,"SELECT * FROM `rajdhani_starline_result` where `market_time` = '06:30 PM' and `entrydate` = '$currdate' "); if($rowstar01 = mysqli_fetch_array($star01)) { echo "<form class='form-horizontal' id='simple_form_1' method='POST' action='pages/update_kuber_starline_result.php' 'onSubmit='return chk();' autocomplete='off'>"; echo "<input type='hidden' name='mtime' placeholder='Jodi' value='06:30 PM' style='width:100%; font-size:12px;' />"; echo "<td style='width:80%;'><input type='text' name='result' placeholder='' value='".$rowstar01['result']."' style='width:100%; font-size:12px;' /></td> <td style='width:30%;'><input type='submit' name='status' class='btn btn-success' value='Save' ></td>"; echo "</form>"; } } ?> </tr> <tr> <td>07:30 PM</td> <?php $snoo1 = mysqli_num_rows(mysqli_query($conn,"SELECT * FROM `rajdhani_starline_result` where `market_time` = '07:30 PM' and `entrydate` = '$currdate' ")); if($snoo1 == 0) { echo "<form class='form-horizontal' id='simple_form_1' method='POST' action='pages/insert_kuber_starline_result.php' 'onSubmit='return chk();' autocomplete='off'>"; echo "<input type='hidden' name='mtime' placeholder='Jodi' value='07:30 PM' style='width:100%; font-size:12px;' />"; echo "<td style='width:80%;'><input type='text' name='result' placeholder='' style='width:100%; font-size:12px;' /></td> <td style='width:30%;'><input type='submit' name='status' class='btn btn-success' value='Save' ></td>"; echo "</form>"; } else { $star01 = mysqli_query($conn,"SELECT * FROM `rajdhani_starline_result` where `market_time` = '07:30 PM' and `entrydate` = '$currdate' "); if($rowstar01 = mysqli_fetch_array($star01)) { echo "<form class='form-horizontal' id='simple_form_1' method='POST' action='pages/update_kuber_starline_result.php' 'onSubmit='return chk();' autocomplete='off'>"; echo "<input type='hidden' name='mtime' placeholder='Jodi' value='07:30 PM' style='width:100%; font-size:12px;' />"; echo "<td style='width:80%;'><input type='text' name='result' placeholder='' value='".$rowstar01['result']."' style='width:100%; font-size:12px;' /></td> <td style='width:30%;'><input type='submit' name='status' class='btn btn-success' value='Save' ></td>"; echo "</form>"; } } ?> </tr> <tr> <td>08:30 PM</td> <?php $snoo1 = mysqli_num_rows(mysqli_query($conn,"SELECT * FROM `rajdhani_starline_result` where `market_time` = '08:30 PM' and `entrydate` = '$currdate' ")); if($snoo1 == 0) { echo "<form class='form-horizontal' id='simple_form_1' method='POST' action='pages/insert_kuber_starline_result.php' 'onSubmit='return chk();' autocomplete='off'>"; echo "<input type='hidden' name='mtime' placeholder='Jodi' value='08:30 PM' style='width:100%; font-size:12px;' />"; echo "<td style='width:80%;'><input type='text' name='result' placeholder='' style='width:100%; font-size:12px;' /></td> <td style='width:30%;'><input type='submit' name='status' class='btn btn-success' value='Save' ></td>"; echo "</form>"; } else { $star01 = mysqli_query($conn,"SELECT * FROM `rajdhani_starline_result` where `market_time` = '08:30 PM' and `entrydate` = '$currdate' "); if($rowstar01 = mysqli_fetch_array($star01)) { echo "<form class='form-horizontal' id='simple_form_1' method='POST' action='pages/update_kuber_starline_result.php' 'onSubmit='return chk();' autocomplete='off'>"; echo "<input type='hidden' name='mtime' placeholder='Jodi' value='08:30 PM' style='width:100%; font-size:12px;' />"; echo "<td style='width:80%;'><input type='text' name='result' placeholder='' value='".$rowstar01['result']."' style='width:100%; font-size:12px;' /></td> <td style='width:30%;'><input type='submit' name='status' class='btn btn-success' value='Save' ></td>"; echo "</form>"; } } ?> </tr> </tbody> </table> </div> </div> </div> <div id="result"></div> <!-- start new student list --> </div> <!-- end page content --> </div> <!-- end page container --> <!-- start footer --> <div class="page-footer" style="color:#fff; background-color:#000000;"> <div class="page-footer-inner" style="color:#fff; background-color:#000000;"> 2023 © <?php echo $cname; ?> </div> <div class="scroll-to-top"> <i class="icon-arrow-up"></i> </div> </div> <!-- end footer --> </div> <script type="text/javascript"> function chk() { var cat = document.form.cat.selectedIndex; var result = document.form.result.value; var date = document.form.date.value; if(cat == 0 ) { alert("Please Select Market"); return false; } else if(date=="") { alert("Please Enter Date"); return false; } } </script> <!-- start js include path --> <script src="assets/plugins/jquery/jquery.min.js" ></script> <script src="assets/plugins/popper/popper.js" ></script> <script src="assets/plugins/jquery-blockui/jquery.blockui.min.js" ></script> <script src="assets/plugins/jquery-slimscroll/jquery.slimscroll.js"></script> <!-- bootstrap --> <script src="assets/plugins/bootstrap/js/bootstrap.min.js" ></script> <script src="assets/plugins/bootstrap-switch/js/bootstrap-switch.min.js" ></script> <script src="assets/plugins/sparkline/jquery.sparkline.js" ></script> <script src="assets/js/pages/sparkline/sparkline-data.js" ></script> <!-- Common js--> <script src="assets/js/app.js" ></script> <script src="assets/js/layout.js" ></script> <script src="assets/js/theme-color.js" ></script> <!-- material --> <script src="assets/plugins/material/material.min.js"></script> <!-- summernote --> <script src="assets/plugins/summernote/summernote.js" ></script> <script src="assets/js/pages/summernote/summernote-data.js" ></script> <!-- end js include path --> </body> </html>