亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

用戶更新信息未顯示

用戶更新信息未顯示

PHP
喵喔喔 2023-08-11 17:07:18
我的 php 有問題,用戶更新的數據未顯示在頁面中,它僅顯示以前的數據而不顯示更新的數據,但信息已在數據庫中更新這是我的 updateForm.php: <?php session_start(); $std = $_SESSION; ?> <!DOCTYPE html> <html> <head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Student Profile  | MyMerit</title><!-- Fonts--><link href="https://fonts.googleapis.com/css?  family=Archivo+Narrow:300,400,700%7CMontserrat:300,400,500,600,700,800,900" rel="stylesheet"><link rel="stylesheet" href="plugins/font-awesome/css/font-awesome.min.css"><link rel="stylesheet" href="plugins/ps-icon/style.css"><!-- CSS Library--><link rel="stylesheet" type="text/css" href="css/style.css" /><link rel="stylesheet" href="plugins/bootstrap/dist/css/bootstrap.min.css">  </head><div class="header--sidebar"></div><header class="header">  <div class="header__top">    <div class="container-fluid">      <div class="row">        <div class="col-lg-6 col-md-8 col-sm-6 col-xs-12">          <p>Welcome to MyMerit</p>        </div>        <div class="col-lg-6 col-md-3 col-sm-6 col-xs-12">          <div class="header__actions"><a href="stdLogin.php"><i class="fas fa-sign-out-alt">   </i>Back</a></div>        </div>      </div>    </div>  </div></header><body><div class="col-lg-4 col-lg-offset-4">  <div class="page-header">      <h2>Student Profile Update</h2>  </div>  <form action="stdUpdateData.php" method="POST">    <div class="form-group">      <div class="input-group col-xs-15">        <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>        <input type="text" class="form-control" name="stdName" placeholder="Username" required>      </div>    </div>    <div class="form-group">       <div class="input-group col-xs-15">        <span class="input-group-addon"><i class="glyphicon glyphicon-credit-card"></i></span>        <input type="text" class="form-control" name="stdMatric" placeholder="Matric No" required>      </div>    </div>
查看完整描述

1 回答

?
桃花長相依

TA貢獻1860條經驗 獲得超8個贊

我假設您在插入數據庫后將學生數據存儲在會話中。

然后,您必須在數據庫更新操作后再次更新會話數據。


查看完整回答
反對 回復 2023-08-11
  • 1 回答
  • 0 關注
  • 124 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號