Help?!

Getting these errors:

Notice: Undefined index: username in C:\Program Files\EasyPHP-5.3.5.0\www\login.php on line 26
Notice: Undefined index: password in C:\Program Files\EasyPHP-5.3.5.0\www\login.php on line 27

For this:

if ($numrows!=0)
{

while ($row = mysql_fetch_assoc($query))
{

$dbusername = $row[‘username’];
$dbpassword = $row[‘password’];

}

echo ($dbusername&&dbpassword);

}
else
die(“The user doesn’t exist”);

These have already been defined… spelling is okay. I’ve written the whole code three times over. Help?

do you know there is a typo just here:
echo ($dbusername&&dbpassword); // <---- the $ sign is missing from dbpassword.

Sponsor our Newsletter | Privacy Policy | Terms of Service