title: Magento : Add customer default billing address
body: <p>I am trying to import the customers into my new magento installation from an old site and want to set customer address as magento customer default billing address i hvae tried </p>
  
  <pre><code>$customer = $this-&gt;getCustomerModel();
  $address = Mage::getModel('customer/address');
  $customer-&gt;addAddress($results[0]['address']); //this says trying to save invalide object
  $address -&gt;addAddress($results[0]['address']); //this says undefined method
  </code></pre>
  
  <p>$results[0]['address'] this field contains the street address i have also the city,state, zip,postcode</p>
  
  <p>Any idea about how can i set my customer address as its default billing or shipping address..</p>