Welcome Guest, Not a member yet? Register   Sign In
getting problem in creating array from foreach loop
#1

[eluser]Unknown[/eluser]
foreach ($arr_fee_names as $key => $value) {
#if the fee field has been selected
if($this->CI->input->post($key) && $this->CI->input->post('applicable_'.$value)) {

$array_temp = array(
'amount_paid' => $_POST[$key],
'fk_frp_fee_id' => $value,
'fk_frp_receipt_id' => $receipt_id
);
array_push($arr_fee_paid, $array_temp);
}
}

I have to store all the values in $arr_fee_paid array variable, but when i am displaying the array only the first value is coming from the array.
Othjer values are not getting
#2

[eluser]Unknown[/eluser]
1




Theme © iAndrew 2016 - Forum software by © MyBB