我有這個功能(get_profile_info)設定值默認笨
function get_profile_info()
{
$this->db->where('username',$this->session->userdata('username'));
$get_profile_info = $this->db->get('memberships');
if($get_profile_info->num_rows() == 1){
foreach ($get_profile_info->result() as $row)
{
echo $row->firstname;
echo $row->lastname;
}
}
}
的問題是我如何把這個結果:名字和姓氏爲輸入表單默認SET_VALUE:echo "Firstname".form_input('firstname2');
或如何把查詢結果爲形式SET_VALUE – user3313651