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

      2. <small id='GJVAi'></small><noframes id='GJVAi'>

          <bdo id='GJVAi'></bdo><ul id='GJVAi'></ul>
      3. <legend id='GJVAi'><style id='GJVAi'><dir id='GJVAi'><q id='GJVAi'></q></dir></style></legend>

        使用图形时无法从数据库中获取数据到脚本标签

        时间:2023-05-21
            <legend id='zrFC1'><style id='zrFC1'><dir id='zrFC1'><q id='zrFC1'></q></dir></style></legend>

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

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

                <tfoot id='zrFC1'></tfoot>
                  本文介绍了使用图形时无法从数据库中获取数据到脚本标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..
                  plotOptions: {
                      column: {
                          pointPadding: 0.2,
                          borderWidth: 0
                      }
                  },
                  
                  series: [{
                      name: 'Not Completed',
                      data: [<?php echo json_encode($TotalNotCompleted); ?>]
                  /* here how to write query to fetch data from database, to make my graph work dynamically */
                  }, {
                      name: 'Completed',
                      data: [<?php echo json_encode($TotalCompleted); ?>]
                  }]
                  

                  推荐答案

                  plotOptions: {
                      column: {
                          pointPadding: 0.2,
                          borderWidth: 0
                      }
                  },
                  series: [
                      <?
                      $QueryTST=mysql_query("SELECT * FROM TotalCounterSales WHERE AdminCity='$City' AND AdminStore='$StoreNo' AND SalesDate='$TodaysDate'");
                      while($RowQTST=mysql_fetch_array($QueryTST))
                      {
                      $ProductNo=$RowQTST['ItemNo'];
                          $QueryProductName=mysql_query("SELECT * FROM products WHERE PId='$ProductNo' ");
                          while($RowQPN=mysql_fetch_array($QueryProductName))
                          {
                              $ProductName=$RowQPN['name'];
                          }
                      ?>
                      { name: "<?echo $ProductName;?>", data: [<?echo $RowQTST['Quantity'];?>]}, 
                      <?}?>
                  ]
                  

                  这篇关于使用图形时无法从数据库中获取数据到脚本标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何在 CheckboxColumn Gridview - Yii2 中获取选定的数据 下一篇:如何在php中从mysql数据库生成图形和图表

                  相关文章

                  最新文章

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

                • <legend id='Fz4LW'><style id='Fz4LW'><dir id='Fz4LW'><q id='Fz4LW'></q></dir></style></legend>

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