function queryDB( $sQuery, $bOperation )
{
@ $this->oResult = mysql_query( $sQuery )
or trigger_error( 'Cannot run query', E_USER_ERROR );
if ( $this->oResult )
{
$this->nNumRows = $bOperation ? mysql_num_rows( $this->oResult ) : mysql_affected_rows();
}
return $this->oResult;
}
i've been using that object for quite sometime but the thing is i never really understood what the boolean expression if for, all i know is that you put true if it's a select and false if it's not but i nver really saw the connection i mean can't we just take that out? what's that for? by d way it's not my code i was told to use that object when i was doing my internship... thanks for explaining in advance