Get Custom module table values by field other than id on Magento 1x

<?php
$model =  Mage::getModel('modelname/modelname');
$customer_id = Mage::getModel('modelname/modelname')->load('table column value', 'table column name');;
echo $customer_id = $customer_id->getData('table column name');	
?>

4 thoughts on “Magento 1x: Get Custom module table values by other field not id

  1. Pingback: ขอ ฆอ
  2. Pingback: Nonameauto

Leave a Reply