0
Parse error
syntax error, unexpected '$_POST'(T_VARIABEL) in C:\xampp\htdocs\kerjaan\proses_login.php on line 6
4 ответов
+ 2
$_POST['T_VARIABEL']
0
solved :v
0
<?php
include_once("function/helper.php");
include_once("function/helper.php");
email = $_POST['email'];
password = md5($_POST['password']);
$query = mysqli_query($koneksi, "SELECT * from user WHERE email='$email' AND password='$password' and status='on'");
if(mysqli_num_rows($query) == 0){
header("location:".BASE_URL."index. php?page=login¬if=true");
}else{
$row = mysqli_fetch_assoc($query);
session_start();
$_SESSION['user_id'] = $row['user_id];
$_SESSION['nama'] = $row['nama];
$_SESSION['level'] = $row['level];
header("location:".BASE_URL."index.php?page=my_profile&module=pesanan&action=list");
}
0
yes