$sql = "SELECT data_user.*,data_car.*,data_prb.*,data_ins.*,district.*, amphur.*, province.*
FROM data_user
left JOIN data_car on data_user.id=data_car.car_id
left JOIN data_prb on data_user.id=data_prb.prb_id
left join data_ins on data_user.id=data_ins.ins_id
LEFT JOIN district ON data_user.district_id = district.DISTRICT_ID
LEFT JOIN amphur ON data_user.amphur_id = amphur.AMPHUR_ID
LEFT JOIN province ON data_user.province_id = province.PROVINCE_ID
WHERE id = '".$strid."' ";
$query = mysqli_query($conn,$sql) ;
$result=mysqli_fetch_array($query,MYSQLI_ASSOC);
?>