Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $address1[] = array();
- foreach($records as $row) {
- $direccion = $row - > direccion;
- $city = $row - > city;
- // $address1[] = $row->address1;
- /*Si lo guardo de esta forma me guarda solo las direcciones sin la id*/
- $c_bpartner_location_id = $row - > c_bpartner_location_id;
- $c_bpartner_id = $row - > c_bpartner_id;
- $address1 = array("address1" => $row - > address1,
- "c_bpartner_location_id" => $row - > c_bpartner_location_id);
- }
- $data['result'] = array(
- 'direccion' => $direccion,
- 'city' => $city,
- 'address1' => $address1,
- 'c_bpartner_id' => $c_bpartner_id,
- 'c_bpartner_location_id' => $c_bpartner_location_id
- );
- $.each(response.result['address1'], function(k, v) {
- alert('1');
- $('<option>').val(v.address1).text(v.address1).appendTo('#address');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement