久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <bdo id='YL6AV'></bdo><ul id='YL6AV'></ul>
<legend id='YL6AV'><style id='YL6AV'><dir id='YL6AV'><q id='YL6AV'></q></dir></style></legend>
    1. <small id='YL6AV'></small><noframes id='YL6AV'>

    2. <tfoot id='YL6AV'></tfoot>

      1. <i id='YL6AV'><tr id='YL6AV'><dt id='YL6AV'><q id='YL6AV'><span id='YL6AV'><b id='YL6AV'><form id='YL6AV'><ins id='YL6AV'></ins><ul id='YL6AV'></ul><sub id='YL6AV'></sub></form><legend id='YL6AV'></legend><bdo id='YL6AV'><pre id='YL6AV'><center id='YL6AV'></center></pre></bdo></b><th id='YL6AV'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='YL6AV'><tfoot id='YL6AV'></tfoot><dl id='YL6AV'><fieldset id='YL6AV'></fieldset></dl></div>

        PHP/MySQLi:將 lc_time_names 和 DATE_FORMAT() 設(shè)置為 mysq

        PHP/MySQLi: SET lc_time_names and DATE_FORMAT() into a mysqli query?(PHP/MySQLi:將 lc_time_names 和 DATE_FORMAT() 設(shè)置為 mysqli 查詢?)
          • <bdo id='ST3GP'></bdo><ul id='ST3GP'></ul>
              <tbody id='ST3GP'></tbody>

          • <legend id='ST3GP'><style id='ST3GP'><dir id='ST3GP'><q id='ST3GP'></q></dir></style></legend>
              • <tfoot id='ST3GP'></tfoot>

                <small id='ST3GP'></small><noframes id='ST3GP'>

                <i id='ST3GP'><tr id='ST3GP'><dt id='ST3GP'><q id='ST3GP'><span id='ST3GP'><b id='ST3GP'><form id='ST3GP'><ins id='ST3GP'></ins><ul id='ST3GP'></ul><sub id='ST3GP'></sub></form><legend id='ST3GP'></legend><bdo id='ST3GP'><pre id='ST3GP'><center id='ST3GP'></center></pre></bdo></b><th id='ST3GP'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ST3GP'><tfoot id='ST3GP'></tfoot><dl id='ST3GP'><fieldset id='ST3GP'></fieldset></dl></div>

                  本文介紹了PHP/MySQLi:將 lc_time_names 和 DATE_FORMAT() 設(shè)置為 mysqli 查詢?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我使用下一個代碼從數(shù)據(jù)庫中的表中檢索數(shù)據(jù):

                  I use the next code to retrieve data from a table in the database:

                  $check_sql = 'SELECT personID, name, DATE_FORMAT(persons.birthdate, "%d de %M, %Y"), birthplace, countryID FROM persons WHERE personID = ?';
                      if ($stmt->prepare($check_sql)) {
                          $stmt->bind_param('i', $pid);
                          $stmt->bind_result($personDB, $name, $birthdate, $birthplace, $countryID);
                          $stmt->execute();
                          $stmt->fetch();
                      }
                  

                  如您所見,同時我使用 DATE_FORMAT() MySQL 函數(shù)將生日"列中的日期格式化為更友好的顯示.現(xiàn)在,我想用西班牙語顯示月份的全名,所以我想在查詢中插入 SET lc_time_names = 'es_ES' ..

                  Like you can see, at the same time I format the date from the 'birthdate' column to a more friendly display using the DATE_FORMAT() MySQL function. Now, I want to display the month full names in Spanish, so I want to insert SET lc_time_names = 'es_ES' into the query..

                  我該怎么做???我可以將 SET lc_time_names 添加到 $check_sql 變量中嗎?

                  How can I do it??? Can I add SET lc_time_names to the $check_sql variable??

                  謝謝!!

                  推薦答案

                  $mysqli = new mysqli("localhost", "my_user", "my_password", "world");
                  $mysqli->query("SET lc_time_names = 'es_ES'");
                  $check_sql = 'SELECT personID, name, DATE_FORMAT(persons.birthdate, "%d de %M, %Y"), birthplace, countryID FROM persons WHERE personID = ?';
                          if ($stmt = $mysqli->prepare($check_sql)) {
                                  $stmt->bind_param('i', $pid);
                                  $stmt->bind_result($personDB, $name, $birthdate, $birthplace, $countryID);
                                  $stmt->execute();
                                  $stmt->fetch();
                          }
                  

                  這篇關(guān)于PHP/MySQLi:將 lc_time_names 和 DATE_FORMAT() 設(shè)置為 mysqli 查詢?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  store_result() and get_result() in mysql returns false(mysql 中的 store_result() 和 get_result() 返回 false)
                  Call to undefined function mysqli_result::num_rows()(調(diào)用未定義的函數(shù) mysqli_result::num_rows())
                  PHP Prepared Statement Problems(PHP 準(zhǔn)備好的語句問題)
                  mysqli_fetch_array returning only one result(mysqli_fetch_array 只返回一個結(jié)果)
                  PHP MySQLi Multiple Inserts(PHP MySQLi 多次插入)
                  How do I make sure that values from MySQL keep their type in PHP?(如何確保 MySQL 中的值在 PHP 中保持其類型?)
                    <tbody id='iKjRm'></tbody>

                  <small id='iKjRm'></small><noframes id='iKjRm'>

                  1. <tfoot id='iKjRm'></tfoot>

                        <legend id='iKjRm'><style id='iKjRm'><dir id='iKjRm'><q id='iKjRm'></q></dir></style></legend>
                          <bdo id='iKjRm'></bdo><ul id='iKjRm'></ul>
                          <i id='iKjRm'><tr id='iKjRm'><dt id='iKjRm'><q id='iKjRm'><span id='iKjRm'><b id='iKjRm'><form id='iKjRm'><ins id='iKjRm'></ins><ul id='iKjRm'></ul><sub id='iKjRm'></sub></form><legend id='iKjRm'></legend><bdo id='iKjRm'><pre id='iKjRm'><center id='iKjRm'></center></pre></bdo></b><th id='iKjRm'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='iKjRm'><tfoot id='iKjRm'></tfoot><dl id='iKjRm'><fieldset id='iKjRm'></fieldset></dl></div>
                          • 主站蜘蛛池模板: 视频一区二区中文字幕 | 亚洲一区二区三区久久 | 国精品一区 | 精品免费观看 | 国产乱码久久久 | 91精品久久久久久久久中文字幕 | 日韩午夜| 日韩在线视频精品 | 黄频视频 | 久久精品亚洲精品国产欧美 | 欧美在线观看一区 | 国产高清精品在线 | 高清av在线 | 中文字幕在线观 | 欧美日韩视频在线第一区 | 亚洲精品成人在线 | 偷拍自拍网 | 伊人伊成久久人综合网站 | 91久久国产综合久久 | 91在线观看网址 | av大全在线 | 欧美性a视频 | 午夜在线影院 | 国产精品久久久久久久久久久免费看 | 夜夜爽99久久国产综合精品女不卡 | 亚洲国产欧美在线人成 | 国产一区二区三区 | 久久久久国| 精品久久久久久一区二区 | 九九99久久| 午夜欧美一区二区三区在线播放 | 91在线观看免费视频 | 久久国产精品99久久久久 | 91视频大全| 亚洲精品永久免费 | 羞羞色在线观看 | 欧美成人免费在线视频 | 欧美最猛黑人xxxⅹ 粉嫩一区二区三区四区公司1 | 男人电影天堂 | 999久久久免费精品国产 | 国产视频一区二区在线观看 |