這是錯誤,我該如何解決它?那是所有的代碼,我很困惑與PHP。我有自動模板製作錯誤日誌,所以我看到了這一點,我無法訪問profile.php。請幫忙!PHP致命錯誤:調用未定義的函數getusername()
<?php
\t require_once('./pieces/header.php');
?>
<div class="row">
\t <div class="col-sm-8" id="center">
\t \t <div class="panel panel-default">
\t \t \t <div class="panel-heading">Profile Editor</div>
\t \t \t <div class="panel-body">
\t \t \t \t <form method="POST">
\t \t \t \t <div class="form-group input-group">
\t \t \t \t \t \t <span class="input-group-addon"><i class="fa fa-github-alt"></i></span>
\t \t \t \t \t \t <input type="text" class="form-control" value="<?php $user>getUsername(); ?>" title="Account username." disabled />
\t \t \t \t \t </div>
\t \t \t \t \t <div class="form-group input-group">
\t \t \t \t \t \t <span class="input-group-addon"><i class="fa fa-envelope"></i></span>
\t \t \t \t \t \t <input type="text" class="form-control" value="<?php $user>getEmail(); ?>" title="Account email." disabled />
\t \t \t \t \t </div>
\t \t \t \t \t <div class="form-group input-group">
\t \t \t \t \t \t <span class="input-group-addon"><i class="fa fa-trophy"></i></span>
\t \t \t \t \t \t <input type="text" class="form-control" value="<?php $user>getMembership(); ?>" title="Account membership." disabled />
\t \t \t \t \t </div>
\t \t \t \t \t <div class="form-group input-group">
\t \t \t \t \t \t <span class="input-group-addon"><i class="fa fa-key"></i></span>
\t \t \t \t \t \t <input type="password" name="oldpassword" class="form-control" placeholder="Current Password" title="Current account password." value="" maxlength="32" autocomplete="off" />
\t \t \t \t \t </div>
\t \t \t \t \t <div class="form-group input-group">
\t \t \t \t \t \t <span class="input-group-addon"><i class="fa fa-key"></i></span>
\t \t \t \t \t \t <input type="password" name="password" class="form-control" placeholder="New Password" value="" title="New account password." maxlength="32" autocomplete="off" />
\t \t \t \t \t </div>
\t \t \t \t \t <div class="form-group no-margn">
\t \t \t \t \t \t <input type="submit" name="save" class="btn btn-success btn-block" value="Save Changes"/>
\t \t \t \t \t </div>
\t \t \t \t </form>
\t \t \t </div>
\t \t </div>
\t </div>
該功能是否定義? – zerkms
@zerkms它應該連接到MySQL,當他們更改用戶名密碼或電子郵件時,它們會在點擊提交併發送給MySQL時發生變化。 –