[eluser]Unknown[/eluser]
Hi,
I'm new to php & codeigniter. My code below has got a problem but I really cannot figure out where went wrong...It seems the result() or row() cannot produce an object. Could anyone help me on this ?
* Line 25 is
Code:
if ($qco->Gateway_Boo == 1) {
<h4>A PHP Error was encountered</h4>
<p>Severity: Notice</p>
<p>Message: Trying to get property of non-object</p>
<p>Filename: models/Tp_model.php</p>
<p>Line Number: 25</p>
Code:
function Tp_coordinator($tpid) { $bk_content = array(); $qco_pre = $this->db->get_where('tp_summary',array('TemplateID'=>$tpid)); $qco = $qco_pre->row(); if ($qco->Gateway_Boo == 1) { $bk_content[0] = $this->_Tp_gateway_lookup($tpid); } else { $bk_content[0] = '-'; }
Thank you.