ok

Mini Shell

Direktori : /home2/selectio/public_html/y1jobportal.in/apps-api/
Upload File :
Current File : /home2/selectio/public_html/y1jobportal.in/apps-api/get-slider.php

<?php
include_once('config/config.php');
include_once('config/custom-functions.php');
include 'config/send-sms.php';

//if(isset($_REQUEST['type']) && $_REQUEST['type']=="get_slider"){
    $where="WHERE status=1";
        $statement = $pdo->prepare("SELECT * FROM `tbl_slider` $where");
		$statement->execute();
		$result = $statement->fetchAll(PDO::FETCH_ASSOC);
		$totalrow = $statement->rowCount();
		
		for($i=0;$i<count($result);$i++){
		    $result[$i]['photo'] = $site_url.$result[$i]['photo'];
		}
		if($result){
		    $response['data']=$result;
		    $response['error']=false;
		    $response['message']="Slider Details Fetched Successfuly";
		}else{
		    $response['error']=true;
		    $response['message']='failed';
		}
		echo json_encode($response);
 
/*}else{
    $response['error']=true;
	$response['message']='Required Parameter Not Sended';
	echo json_encode($response);
}*/
?>

Zerion Mini Shell 1.0