i dont know whats wrong it keeps saying username is incorrect thats all
<?php
include("75657.php");
include("connect45.php");
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
echo "<head>";
echo "<meta name=\"keywords\" content=\"chat,free,pics,photos,videos,myspace\"/>";
echo "<meta name=\"description\" content=\"Mobile community where you can meet people, chat, share pics and videos and play games on your cell phone.\"/>";
echo "<title>Chillblock | Meet People</title>";
echo "<link href=\"css/122538344.css\" rel=\"stylesheet\" type=\"text/css\" />";
echo "</head>";
echo "<body>";
echo "<p style=\"text-align: center\">";
if(isset($_GET['submit'])){
$un = $_GET["un"];
$up = $_GET["up"];
}
$n = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM users WHERE username='".$un."'"));
if($n[0]==0)
{
echo "<div class=\"errormsg\">Username is Incorrect</div><a href=\"login.php\">Try Again</a><br/>";
}
$p = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM users WHERE username='".$un."' AND password='".$up."'"));
if($p[0]==0)
{
echo "<div class=\"errormsg\">Password is Incorrect</div><a href=\"login.php\">Try Again</a><br/>";
}else{
//if success get link below
echo "<a href=\"home.php\">[enter]</a><br/>";
}
echo "</body>";
echo "</html>";
?>
<?php
include("75657.php");
include("connect45.php");
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
echo "<head>";
echo "<meta name=\"keywords\" content=\"chat,free,pics,photos,videos,myspace\"/>";
echo "<meta name=\"description\" content=\"Mobile community where you can meet people, chat, share pics and videos and play games on your cell phone.\"/>";
echo "<title>Chillblock | Meet People</title>";
echo "<link href=\"css/122538344.css\" rel=\"stylesheet\" type=\"text/css\" />";
echo "</head>";
echo "<body>";
echo "<p style=\"text-align: center\">";
if(isset($_GET['submit'])){
$un = $_GET["un"];
$up = $_GET["up"];
}
$n = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM users WHERE username='".$un."'"));
if($n[0]==0)
{
echo "<div class=\"errormsg\">Username is Incorrect</div><a href=\"login.php\">Try Again</a><br/>";
}
$p = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM users WHERE username='".$un."' AND password='".$up."'"));
if($p[0]==0)
{
echo "<div class=\"errormsg\">Password is Incorrect</div><a href=\"login.php\">Try Again</a><br/>";
}else{
//if success get link below
echo "<a href=\"home.php\">[enter]</a><br/>";
}
echo "</body>";
echo "</html>";
?>
Comment