Welcome Guest, Not a member yet? Register   Sign In
Please help me convert this php to CI code
#2

[eluser]xwero[/eluser]
Code:
foreach ($updateRecordsArray as $listingCounter=>$recordIDValue) {
    $this->db->set('recordListingID',$listingCounter+1)->where('recordID',$recordIDValue)->update();
}
This is if you use the AR class, php5 and the $updateRecordsArray has consecutive keys starting from 0.


Messages In This Thread
Please help me convert this php to CI code - by El Forum - 05-25-2009, 08:46 AM
Please help me convert this php to CI code - by El Forum - 05-25-2009, 08:58 AM
Please help me convert this php to CI code - by El Forum - 05-25-2009, 09:18 AM
Please help me convert this php to CI code - by El Forum - 05-25-2009, 09:21 AM
Please help me convert this php to CI code - by El Forum - 05-25-2009, 09:24 AM
Please help me convert this php to CI code - by El Forum - 05-25-2009, 09:27 AM
Please help me convert this php to CI code - by El Forum - 05-25-2009, 09:30 AM
Please help me convert this php to CI code - by El Forum - 05-25-2009, 09:47 AM
Please help me convert this php to CI code - by El Forum - 05-25-2009, 10:03 AM
Please help me convert this php to CI code - by El Forum - 05-25-2009, 10:12 AM
Please help me convert this php to CI code - by El Forum - 05-25-2009, 10:18 AM
Please help me convert this php to CI code - by El Forum - 05-25-2009, 10:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB