Welcome Guest, Not a member yet? Register   Sign In
problem with array
#2

[eluser]John_Betong[/eluser]
Try this:
Code:
foreach ($_POST as $key => $val)
  {
    $data['group'] = isset($data['group']) ? $data['group'] : '';

    if ($key!='id')
    {
      if ($key!='STMIK'&&$key!='UPB'&&$key!='Sekolah'&&$key!='Kursus')
      {
        $data[$key] = $this->input->post($key);
      }else{
        $data['group'] .=  $val;
      }
    }
  }
 


Messages In This Thread
problem with array - by El Forum - 05-20-2010, 08:23 PM
problem with array - by El Forum - 05-20-2010, 09:12 PM
problem with array - by El Forum - 05-20-2010, 09:55 PM
problem with array - by El Forum - 05-20-2010, 10:04 PM
problem with array - by El Forum - 05-21-2010, 12:48 AM
problem with array - by El Forum - 05-21-2010, 01:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB