<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                [TOC] ## 實例 ``` class AysMysql{ public $dbSource=""; private $dbconfig; public function __construct(){ $this->dbSource = new swoole_mysql(); $this->dbconfig=[ 'host'=>'127.0.0.1', 'port'=>3306, 'user'=>'root', 'password'=>'12345678', 'database'=>'demo', 'charset'=>'utf8', ]; } public function update(){ } public function add(){ } public function execute($id, $username){ $this->dbSource->connect($this->dbconfig,function($db,$result) use ($username, $id){ echo "connect...".PHP_EOL; //錯誤 if($result === false){ var_dump($db->connect_error); } //$sql = "select * from test where id=1 LIMIT 1"; $sql = "update test set username='{$username}' WHERE id='{$id}'"; //增刪改查 都可以用 query $db->query($sql,function($db,$result){ if ($result===false){ //todo print_r($db->error); }elseif($result===true){ //todo print_r($db->affected_rows); }else{ print_r($result); } $db->close(); }); }); return true; } } $obj = new AysMysql(); $obj->execute(1,'idcpj2'); echo "start".PHP_EOL; ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看