ok

Mini Shell

Direktori : /home2/selectio/www/subamangala/admin/api/
Upload File :
Current File : /home2/selectio/www/subamangala/admin/api/points-search-api.php

<?php 
ob_start();
session_start();
include"../config/config.php";

$cond='where 1=1 ';
$search="";
if(isset($_REQUEST['search_text'])){
    $search.=$_REQUEST['search_text'];
}

$cond .= " AND (`name` like '%" . $search . "%' OR `quick_address` like '%" . $search . "%')";

    $statement = $pdo->prepare("SELECT * FROM tbl_points $cond");
    $statement->execute();
    $emp_data = $statement->fetchAll(PDO::FETCH_ASSOC);
    $totalData = $statement->rowCount();
    
   /*INR Symbolâ‚ą*/
    
    if($totalData>0){
        foreach($emp_data as $res){
            echo '<div onclick="product_selection('.$res['id'].')">
                    Point Name : '.$res['name'].' <br>
                    Address : <i class="fa fa-inr"></i> '.$res['quick_address'].'
                </div>';
        }
        
    }else{
        echo '<div><center> No Data Found...</center><div>';
    }
    

?>

Zerion Mini Shell 1.0