I have a question, when cannot run this programme, it shows
Parse error: syntax error, unexpected 'username' (T_STRING) in C:\xampp\htdocs\fypp\index.php on line 9
<?php
session_start();
if (isset($_POST['bttLogin'])){
require 'connect.php';
$username = $_POST['username'];
$password = $_POST['password'];
$result = mysquli_query($con, 'select * from account where username="'.$username.'" and password="'.$password.'")
if(mysqli_num_rows($result)==1) {
$_SESSION['username'] = $username;
header("Location: welcome.php");
}
else
echo "account is invalid";
}
?>
<form method="post">
<table cellpadding="2" cellspacing="2" border="1">
<tr>
<td>Username</td>
<td><input type="text" name="username"></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password"" name="password"></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="bttLogin" value="Login"></td>
</tr>
thanks for answering :)