I'm having this kind of error tho I already fixed the old issue but still i dont know why I am getting this error. Please be reminded that I am currently newbie ug PHP and I am self studying
<?php
session_start();
$con = mysqli_connect('localhost',);
mysqli_select_db($con, 'user');;
$s = "select * from username where same = '$username' && password = '$password'";
$result = mysqli_query($con, $s);
$num = mysqli_num_rows($result);
if($num == 1)
{
$_SESSION['username'] = $username;
header('location:home.php');
}else
{
header('location:login.php');
}
?>