include("dbconfig/dbconfig.php") mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name"); $myusername=$_POST['myusername']; $mypassword=$_POST['mypassword']; $myusername = stripslashes($myusername); $mypassword = stripslashes($mypassword); $myusername = mysql_real_escape_string($myusername); $mypassword = mysql_real_escape_string($mypassword); $sql="SELECT * FROM $tbl_name WHERE username='$myusername' and password='$mypassword'"; $result=mysql_query($sql); $count=mysql_num_rows($result); if($count==1){ session_register("myusername"); session_register("mypassword"); header("location:http://www.pixidian.net/"); } else { echo "Wrong Username or Password"; }
$host="mysql15.000webhost.com"; $db_name="a7120106_*****"; $username="a7120106_*****"; $password="*****"; $tbl_name="members";
include("dbconfig/dbconfig.php");
include("dbconfig/dbconfig.php")
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)