[eluser]RESPECT[/eluser]
This is just a general PHP question...Im wondering if this would work:
Code:
$query = $this->db->get_where('portfolio', array('id' => $id), 1) = (!$query) ? return $query->row() : return false;
Or would I have to do it this way?
Code:
$query = (!is_null($this->db->get_where('portfolio', array('id' => $id), 1))) ? return $query->row() : return false;
Thanks in advance!