1. <small id='MqIJv'></small><noframes id='MqIJv'>

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

      1. 注意:未定义变量:“"中的 _SESSION在第 9 行

        时间:2023-09-21

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

              • <tfoot id='ahwNF'></tfoot>

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

                • <bdo id='ahwNF'></bdo><ul id='ahwNF'></ul>
                    <tbody id='ahwNF'></tbody>
                  <legend id='ahwNF'><style id='ahwNF'><dir id='ahwNF'><q id='ahwNF'></q></dir></style></legend>
                  本文介绍了注意:未定义变量:“"中的 _SESSION在第 9 行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  这是我的php代码:

                  <?php include("inc/incfiles/header.inc.php")?>
                  <html>
                  <head>
                  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
                  <title>Member Index</title>
                  <link href="css/main.css" rel="stylesheet" type="text/css" />
                  </head>
                  <body>
                  <h1>Welcome <?php echo ($_SESSION['SESS_fname']);?></h1>
                  <a href="member-profile.php">My Profile</a> | <a href="logout.php">Logout</a>
                  <p>This is a password protected area only accessible to members. </p>
                  </body>
                  </html>
                  

                  我知道代码有问题,但不知道如何修复.我的错误是:注意:未定义变量:_SESSION in C:xampphtdocsSmashermember-index.php 第 9 行"

                  I know something I wrong with the code but I don't know how to fix it. My error says: "Notice: Undefined variable: _SESSION in C:xampphtdocsSmashermember-index.php on line 9"

                  我该如何修复错误,让它显示用户的名字?mySQL 上的数据库表中的第一个名称称为 fname.

                  How can I fix the error so it will say the user's first name? The first name in the database table on mySQL is called fname.

                  推荐答案

                  添加

                  session_start();
                  

                  在任何 HTML 之前的页面开头

                  at the beginning of your page before any HTML

                  你会有类似的东西:

                  <?php session_start();
                  include("inc/incfiles/header.inc.php")?>
                  <html>
                  <head>
                  <meta http-equiv="Content-Type" conte...
                  

                  这篇关于注意:未定义变量:“"中的 _SESSION在第 9 行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:fopen 上的详细错误 下一篇:在没有 php.ini 的情况下设置 display_errors=0 和 log

                  相关文章

                  最新文章

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

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

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

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