• <bdo id='mrjKi'></bdo><ul id='mrjKi'></ul>
  • <legend id='mrjKi'><style id='mrjKi'><dir id='mrjKi'><q id='mrjKi'></q></dir></style></legend>

      <tfoot id='mrjKi'></tfoot>
    1. <i id='mrjKi'><tr id='mrjKi'><dt id='mrjKi'><q id='mrjKi'><span id='mrjKi'><b id='mrjKi'><form id='mrjKi'><ins id='mrjKi'></ins><ul id='mrjKi'></ul><sub id='mrjKi'></sub></form><legend id='mrjKi'></legend><bdo id='mrjKi'><pre id='mrjKi'><center id='mrjKi'></center></pre></bdo></b><th id='mrjKi'></th></span></q></dt></tr></i><div id='mrjKi'><tfoot id='mrjKi'></tfoot><dl id='mrjKi'><fieldset id='mrjKi'></fieldset></dl></div>
    2. <small id='mrjKi'></small><noframes id='mrjKi'>

      1. 如何使用php更新mysql中的多个列

        时间:2024-08-22
            <legend id='9srf3'><style id='9srf3'><dir id='9srf3'><q id='9srf3'></q></dir></style></legend>
          1. <tfoot id='9srf3'></tfoot>

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

                  <small id='9srf3'></small><noframes id='9srf3'>

                    <tbody id='9srf3'></tbody>
                  本文介绍了如何使用php更新mysql中的多个列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  这里我正在尝试使用 php 更新更新 mysql 表中的多个列值.

                  Here i am trying to update update multiple column values in mysql table using php.

                  $product_id = mysqli_real_escape_string($link, $_POST['product_id']);
                  $product_name = mysqli_real_escape_string($link, $_POST['product_name']);
                  $product_category = mysqli_real_escape_string($link, $_POST['product_category']);
                  
                  $sql = "UPDATE product_list (product_name, product_category, product_price,product_description,product_size_category) VALUES ('$product_name', '$product_category', '$product_price', '$product_description', '$size_category')";
                  }"
                  

                  我有 5 个列值要在表中更新,我正在使用变量来保存数据并使用该变量想要更新表中的值我该怎么做?

                  i have 5 column values to be updated in table, i am using variable to save data and using that variable want to update the values in table how can i do that?

                  推荐答案

                   $sql = "UPDATE `product_list` SET 
                         `product_name` = '$product_name', 
                         `product_category` = '$product_category', 
                         `product_price` = '$product_price', 
                         `product_description` = '$product_description', 
                         `product_size_category` = '$size_category' 
                    where clause..... (if required) ";
                  

                  这篇关于如何使用php更新mysql中的多个列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:在非对象上调用成员函数 bind_param().mysqli 下一篇:GCM 与 PHP(谷歌云消息)

                  相关文章

                      <bdo id='d7nVg'></bdo><ul id='d7nVg'></ul>

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

                    <tfoot id='d7nVg'></tfoot>
                    <i id='d7nVg'><tr id='d7nVg'><dt id='d7nVg'><q id='d7nVg'><span id='d7nVg'><b id='d7nVg'><form id='d7nVg'><ins id='d7nVg'></ins><ul id='d7nVg'></ul><sub id='d7nVg'></sub></form><legend id='d7nVg'></legend><bdo id='d7nVg'><pre id='d7nVg'><center id='d7nVg'></center></pre></bdo></b><th id='d7nVg'></th></span></q></dt></tr></i><div id='d7nVg'><tfoot id='d7nVg'></tfoot><dl id='d7nVg'><fieldset id='d7nVg'></fieldset></dl></div>
                  1. <legend id='d7nVg'><style id='d7nVg'><dir id='d7nVg'><q id='d7nVg'></q></dir></style></legend>