嗨,我从登录屏幕登录到我的报告,该代码可在我的本地主机上运行,但又不想在实时数据库上运行,谁能告诉我为什么我使用FileZila
print.default(format(mat, width = 15), quote = FALSE)
嗨,我已经添加了
<?php
SESSION_start();
require_once '../config.php';
/* Logining in the users */
if(isset($_POST['Login']) && $_POST['Login'] == 1){
//print_r($_POST);
//Variables
$email = $_POST['Email'];
$password = $_POST['Password'];
// check if there is a user with the same password
$sql = "SELECT * FROM afm_user WHERE Email = '$email' AND Password = '$password'";
$result = mysqli_query($conn, $sql);
// print_r($email);
//print_r($result);die();
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc() ) {
$_SESSION['userEmail'] = $row['Email'];
$_SESSION['userId'] = $row['id'];
}
header("Location: ../index.php");
} else {
echo "0 results";
}
}
如果任何人都可以说明为什么它在myAdmin而不是FileZila上起作用,则显示的全部为“ 0个结果”