public function addAccountRow() { Trace::output($this->traceID, "addRow"); //---------------------------------------------------------- //init var //---------------------------------------------------------- $chk = array("bool" => true, 'traceID' => "subscribe"); //---------------------------------------------------------- $chk = InsertINTO::go(Accounts_const::TBL, $this->set); //---------------------------------------------------------- $this->accounts_id = $chk['insert_id']; //---------------------------------------------------------- $geoip = GenFun::getGeoIP(); //---------------------------------------------------------- if ($chk['bool']) { $geoResult = InsertINTO::go("geoip", $geoip); } //---------------------------------------------------------- if (!$geoResult['error']) { Update::go("accounts", array("geoip_id" => $geoResult['insert_id'])); } else { return $geoResult; } //---------------------------------------------------------- return $chk; }