title: send full address to php variable
body: <p>I have this line of code</p>
  <pre><code>&lt;div class=&quot;col-xs-6&quot;&gt;
      &lt;p&gt;Address (New Format):&lt;/p&gt;
  &lt;/div&gt;
  &lt;div class=&quot;col-xs-6&quot;&gt;
      &lt;?php 
          $address =$this-&gt;commonModel-&gt;getById('locations','id',$task-&gt;address); 
      ?&gt;
    &lt;p&gt;
        &lt;a href=&quot;javascript:;&quot; data-type=&quot;select&quot; data-pk=&quot;1&quot; data-value=&quot;&quot; data-original-title=&quot;Select Address&quot; 
            class=&quot;editable editable-click contactaddress&quot; style=&quot;color: gray;&quot;&gt;
            &lt;?php echo $address-&gt;name.' - '.$address-&gt;address; ?&gt;&amp;nbsp;
        &lt;/a&gt;
    &lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  <p>The table fields are |address|city|state|PostalCode|</p>
  <p>How can I have the $address variable receive all 4 fields, not just the first?</p>
  <p>I have tried</p>
  <p>$task-&gt;address, city, state</p>
  <p>and</p>
  <p>$task-&gt;address, $task-&gt;city, etc</p>
  <p>the common model code is</p>
  <pre><code>public function getById($table,$id,$value){
          $qry =$this-&gt;db-&gt;query('select * from '.$table.' where '.$id.'=&quot;'.$value.'&quot; order by '.$id.' desc');
          return $qry-&gt;row();
  </code></pre>