ok

Mini Shell

Direktori : /home2/selectio/www/wedding-info-new/api/
Upload File :
Current File : /home2/selectio/www/wedding-info-new/api/seller_rank.php

<?php
error_log("Wish list start 1");
include_once('config/config.php');
error_log("Wish list start");
    session_start();
//     productid
// sellerid

$return_arr = array(); // Initialize the return arrayallaiance_verified
error_log('ranking count starts............');
if (1 == 1) {
    try {
        $id=$_POST['id'];
        $insert = $_POST['types'];
        if($insert=="seller_rank"){
            $statement = $pdo->prepare("UPDATE `tbl_seller` SET `share_count` = `share_count` + 1 WHERE id = ?");
            $result = $statement->execute(array($id));

      
        if ($result) {
            $return_arr['message'] = 'Alliance Added to Wishlist.';
            $return_arr['element'] = 'active';
            $return_arr['ids'] = $id;
            $return_arr['status'] = 200;
        } else {
            $return_arr['message'] = 'Error';
            $return_arr['status'] = 400;
        }
            
        }
        
    } catch (Exception $e) {
        $return_arr['message'] = $e->getMessage();
        $return_arr['status'] = 500;
        error_log($e->getMessage());
    }

    echo json_encode($return_arr);
}
?>

Zerion Mini Shell 1.0