Ejemplo n.º 1
0
        }
        function international($courier_name)
        {
            $sql = "SELECT * FROM tbl_courier_rate WHERE `courier_province` = 'international' AND `courier_name` = '{$courier_name}' ORDER BY `courier_city` ASC";
            $query = $this->conn->query($sql);
            $row = array();
            while ($result = $query->fetch_object()) {
                array_push($row, $result);
            }
            return $row;
        }
    }
    $_ajax = new AJAX();
    $province = filter_var($_POST['post'], FILTER_SANITIZE_STRING);
    $weight = filter_var($_POST['weight'], FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION);
    $country = $_ajax->international($province);
    ?>
   
   <div class="box row" id="international">
       <div class="desc col-xs-3">
         <h3>International Shipping</h3>
         <p>Details of international shipping cost.</p>
       </div>
       <div class="content col-xs-9">
         <ul class="form-set">
           
		   <?php 
    $row = 0;
    foreach ($country as $country) {
        ?>