<?php
session_start();
$username = $_POST['username'];
$password = $_POST['password'];
Notice: Use of undefined constant username - assumed 'username'
if (username&&password)
<?php
session_start();
$username = $_POST['username'];
$password = $_POST['password'];
if (username&&password)
{
$link = mysqli_connect("localhost","root","","phplogin") or die("Error " .
mysqli_error($link));
mysql_select_db("phplogin" , $link);
$result = mysql_query("SELECT * FROM username" , $link);
$num_rows = mysql_num_rows($result);
}
?>