", $msg); return; } function queryone($query) { if (!$this->query($query)) { return 0; /* Zero means 'query failed' */ } if ($this->num_rows() != 1) { $this->free(); /* More or less than one answers */ return 0; } $this->next_record(); /* Advance to the data record. */ return $this->Query_ID; } }