File manager - Edit - /home/autoph/public_html/connectv1/app/misc/get_branch.php
Back
<?php include_once("../../cfg/db.php"); $type = $_REQUEST['type']; if($type == 1){ $bank = $db->escape($_POST['bank']); $branch_list = ""; $query = "SELECT "; } if(isset($_POST['brand_id'])){ $brand_id = $_POST['brand_id']; $model_list = ""; $query = "SELECT `id`, `name` FROM `source_car_model` WHERE `brand_id` = '$brand_id' ORDER by `id` ASC"; $brand = $db -> return_result($query); //echo $query; return; //print_r($clients); foreach($brand as $data){ $model_list = $model_list."<option value='{$data['id']}'>".$data['name']."</option>"; } echo $model_list; } ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings