Welcome Guest, Not a member yet? Register   Sign In
Issue with database record updating: updating record inside a foreach loop?
#12

[eluser]saidai jagan[/eluser]
Yeah thats fine,
For ex u r datas are like 354=1&564=2&999=3
First
Code:
$result = 354=1&564=2&999=3;
$split_arr = explode('&',$result);
$count = count($split_arr);
for($i=0;$i<=$count;$i++)
{
  $explode = explode('=',$split_arr[$i]);
  $this->m__crud->update_record("photos",$explode[0],$explode[1]);
}
This is untested, Hope it helps u


Messages In This Thread
Issue with database record updating: updating record inside a foreach loop? - by El Forum - 12-16-2009, 06:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB