Welcome Guest, Not a member yet? Register   Sign In
Shorthand
#1

[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!


Messages In This Thread
Shorthand - by El Forum - 08-25-2008, 12:10 AM
Shorthand - by El Forum - 08-25-2008, 01:38 AM
Shorthand - by El Forum - 08-25-2008, 01:45 AM
Shorthand - by El Forum - 08-25-2008, 01:54 AM
Shorthand - by El Forum - 08-25-2008, 02:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB