Exemple #1
0
        return $row;
    }
    function get_provinces()
    {
        $sql = "SELECT * FROM `province` ORDER BY `province_name`";
        $query = $this->conn->query($sql);
        $row = array();
        while ($result = $query->fetch_object()) {
            array_push($row, $result);
        }
        return $row;
    }
}
$_ajax = new AJAX();
$ajax_email = filter_var($_POST['email'], FILTER_SANITIZE_EMAIL);
$count = $_ajax->count_user($ajax_email);
if ($count->rows > 0) {
    $data = $_ajax->get_user($ajax_email);
    $country = $_ajax->get_country();
    $province = $_ajax->get_provinces();
    if ($data->user_country == 'Indonesia') {
        $city = $_ajax->get_province($data->user_province);
    } else {
        $city = $data->user_city;
    }
    ?>

			  <li class="form-group p_t_25 m_t_30 upperlined">
                <h5 class="m_b_20"><strong>BILLING ADDRESS</strong></h5>
              </li>
              <li class="form-group row" id="id-row-billing-fname">