<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>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # PHP mysqli_fetch_fields() 函數 ## 實例 返回結果集中代表字段(列)的對象的數組,然后輸出每個字段名稱、表格和最大長度: ``` <?php $con=mysqli_connect("localhost","my_user","my_password","my_db"); // Check connection if (mysqli_connect_errno($con)) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $sql="SELECT Lastname,Age FROM Persons ORDER BY Lastname"; if ($result=mysqli_query($con,$sql)) { // Get field information for all fields $fieldinfo=mysqli_fetch_fields($result); foreach ($fieldinfo as $val) { printf("Name: %sn",$val->name); printf("Table: %sn",$val->table); printf("max. Len: %dn",$val->max_length); } // Free result set mysqli_free_result($result); } mysqli_close($con); ?> ``` ## 定義和用法 mysqli_fetch_fields() 函數返回結果集中代表字段(列)的對象的數組。 ## 語法 mysqli_fetch_fields(_result_)_;_ | 參數 | 描述 | | --- | --- | | _result_ | 必需。規定由 mysqli_query()、mysqli_store_result() 或 mysqli_use_result() 返回的結果集標識符。 | ## 技術細節 | 返回值: | 返回包含字段定義信息的對象。如果沒有可用信息則返回 FALSE。該對象有下列屬性: `name` - 列名 `orgname` - 原始的列名(如果指定了別名) `table` - 表名 `orgtable` - 原始的表名(如果指定了別名) `max_length` - 字段的最大寬度 `length` - 在表定義中規定的字段寬度 `charsetnr` - 字段的字符集號 `flags` - 字段的位標志 `type` - 用于字段的數據類型 `decimals` - 整數字段,小數點后的位數 | | :-- | --- | | PHP 版本: | 5+ | | :-- | --- |
                  <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>

                              哎呀哎呀视频在线观看