Welcome Guest, Not a member yet? Register   Sign In
how to display result_array in php ?
#1

[eluser]mythilisubramanyam[/eluser]
///In Controller, i have a code :

$data['get']=$this->staffModel->getDetails($empid);
$this->load->view('staffProfile',$data);

///In model, query is:

function getDetails($empid)
{
$query = $this->db->query("select * from tbl_emp_language where dEmp_id='$empid' ");
return $query->result_array();
}

//In View :
<td>&lt;input type="text" name=""
value="&lt;?php foreach($get as $lang) { echo $lang['dLanguageName']; } ?&gt;"&gt; </td>

<td>&lt;input type="text" name=""
value="&lt;?php foreach($get as $lang) { echo $lang['dLanguageName']; } ?&gt;"&gt; </td>

output is "EnglishHindiKannada" in all textbox,

But i need to separate the languages and display it in each textbox,

So can any one help me in this issue,


Messages In This Thread
how to display result_array in php ? - by El Forum - 07-02-2009, 12:41 AM
how to display result_array in php ? - by El Forum - 07-02-2009, 01:41 AM
how to display result_array in php ? - by El Forum - 07-02-2009, 06:11 AM
how to display result_array in php ? - by El Forum - 07-02-2009, 06:19 AM
how to display result_array in php ? - by El Forum - 07-02-2009, 06:30 AM
how to display result_array in php ? - by El Forum - 07-02-2009, 06:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB