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.191.223.30


Current Path : /var/www/website/bkmh/php/
Upload File :
Current File : //var/www/website/bkmh/php/bkmhreferno.php

<?php   

$servername = "logisys.cluster-cv9maxyrxjgg.ap-south-1.rds.amazonaws.com";
$username   = "admin";
$password  = "T0g3th3r@all";
$database = "logisys3_demo";
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
ini_set('display_errors', 'on');

$conn = new  mysqli($servername,$username,$password,$database);

if(!$conn) 
{
    die("Connection failed: " . mysqli_connect_error());
}

    $FMOBILE = $_POST["fmob"];

    $query = "select * from memhead where FMOBILE='{$FMOBILE}'";
    
    $result1 = mysqli_query($conn,$query);
    $row = mysqli_fetch_assoc($result1);
    $count = mysqli_num_rows($result1);
   
    if($count != 1){
        mysqli_close($conn);
        $row['status'] = 'success';
        echo json_encode($row);
    }else{
        mysqli_close($conn);
        $row['status'] = 'Invaild';
        $row['msg'] = 'This Mobile number is already registered';
        echo json_encode($row);
    }


?>