任何解决方案?两个表具有相同的字段名称。
<?php
class New_post extends Ci_model{
function __construct()
{
parent::__construct();
$this->load->database();
}
public function get_user_data()
{
$this->load->library('session');
$user_id=$this->session->userdata('login_id');
$this->load->database();
$query=$this->db->select(['First_Name','Last_Name',' Mobile_Number','bio'])
-> from('employ','jobseekers')
->where('login_id',$user_id)
->get();
return $query->result();