Guest User

Untitled

a guest
Mar 11th, 2016
54
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function update_client($data)
  2. {
  3. $id_arr = explode(",",$data["params"]["ID"]);
  4. $name_arr = explode(",",$data["params"]["Name"]);
  5. $title_arr = explode(",",$data["params"]["Title"]);
  6.  
  7. for($i=0; $i<count($id_arr); $i++)
  8. {
  9. $id = $id_arr[$i];
  10. $name = $name_arr[$i];
  11. $title = $title_arr[$i];
  12.  
  13. // pass to insert / update query to set $id,$name,$title
  14. }
  15. }
RAW Paste Data