id = $id*1; $query = "select indexint_id from indexint where indexint_id = ".$this->id; $result = pmb_mysql_query($query); if($result && pmb_mysql_num_rows($result)){ $this->authority = new authority(0, $this->id, AUT_TABLE_INDEXINT); } } }