okay its not really a error but it is a problem i am making a php login form and set it up to were if you havent put any information in and press login i says Please enter a username and password it works when i dont put any information in but when i do put correct information in it tells me the same thing
here is the code:
<?php
@$username = $_POST['$_username'];
@$password = $_POST['$_password'];
if (($username != "") && ($password != ""))
{
$connect = mysql_connect("localhost","root","") or die("couldn't connect!");
mysql_select_db("phplogin") or die("couldn't find db");
}
else
die("Please enter a username and password!");
here is the code:
<?php
@$username = $_POST['$_username'];
@$password = $_POST['$_password'];
if (($username != "") && ($password != ""))
{
$connect = mysql_connect("localhost","root","") or die("couldn't connect!");
mysql_select_db("phplogin") or die("couldn't find db");
}
else
die("Please enter a username and password!");