-2
我試圖打開我的「index.php」文件,當我登錄我的網站上的正確信息,但我不斷收到錯誤。回聲一個PHP文件
這裏是我的代碼:
<?php
session_start();
include 'dbase.php';
$uid = $_POST['uid'];
$pwd = $_POST['pwd'];
$sql = "SELECT * FROM user WHERE uid = '$uid' AND pwd = '$pwd'";
$result = $conn->query($sql);
if (!$row = mysqli_fetch_assoc($result))
{
echo "Your username or password is incorrect!";
}
else
{
echo fgets($index);
}
也許分享你的錯誤? – Cashbee