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

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

        <tfoot id='JuL7s'></tfoot>

        mysqli_error() 期望参数 1 为 mysqli,null 是什么意思

        时间:2023-07-31

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

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

                  <bdo id='yTWsu'></bdo><ul id='yTWsu'></ul>
                • 本文介绍了mysqli_error() 期望参数 1 为 mysqli,null 是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我有这个 PHP 页面:

                  I have this PHP page:

                  <?php
                  
                  //$_GET['invite'] = kNdqyJTjcf;
                  
                  $code = mysqli_real_escape_string ($dbc, $_GET['invite']);
                  
                  $q = "SELECT invite_id FROM signups_invited WHERE (code = '$code') LIMIT 1";
                  $r = mysqli_query ($dbc, $q) or trigger_error("Query: $q
                  <br />MySQL Error: " . mysqli_error($dbc));
                  
                  if (mysqli_num_rows($r) == 1) {
                      echo 'Verified';
                  } else {
                      echo 'That is not valid. Sorry.';
                  }
                  
                  ?>
                  

                  这将返回错误警告:mysqli_error() 期望参数 1 为 mysqli,给出空值.

                  知道为什么吗?

                  推荐答案

                  需要定义:$dbc之前

                   $code = mysqli_real_escape_string ($dbc, $_GET['invite']);
                  

                  例如:

                  $dbc = mysqli_connect("localhost", "my_user", "my_password", "world");
                  

                  这篇关于mysqli_error() 期望参数 1 为 mysqli,null 是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:Mysqli 抛出“警告:mysqli_stmt_bind_param() 期望参数 下一篇:mysqli_real_escape_string 安全吗?

                  相关文章

                  最新文章

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

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

                • <tfoot id='B3rS5'></tfoot>
                  <legend id='B3rS5'><style id='B3rS5'><dir id='B3rS5'><q id='B3rS5'></q></dir></style></legend>
                    1. <small id='B3rS5'></small><noframes id='B3rS5'>