Its solved: Let see now!
<?php
//$username = $_POST['username'];
//$password = $_POST['password'];
$username = "user";
$password = "password";
if( $username != null or $password !=null){
// If 1
$conn = @mysql_connect("localhost", "username", "password") or die("could not connect");
$rs = @mysql_select_db( "test", $conn ) or die("could not select database");
$sql = "SELECT * from basicinfo where username=('$username') and password = password( '$password' )"; // Here was problem
$rs = @mysql_query($sql, $conn) or die("could not execute");
$num = mysql_numrows( $rs );
} else {
if ($num != 0){
// If 2
echo( "welcome" );
} elseif ($num <= 0 || $num = null){
// in If 2
echo("no");
} else {
// in If 2
echo( "something went wrong." );
}
// end if 2
}
// end if 1
?>
My Files Here:
http://www.geocities.com/waytosuccess4it/index.html