the register_globals is on state.so we are using post.it doesn’t support $_SESSION in this domain why? &
showing error in this line statement: why its working fine in localhost.but when i working in differnet domain it doesn’t
$username=mysql_result($result,0,”emailid”);
$password=mysql_result($result,0,”password”);
can any one help to fix this. this is code.
[code=php]<?
session_cache_limiter(‘must-revalidate’);
session_start();
session_register(“session”);
?>
<?
//if((isset($_POST[‘username’]))&&(isset($_POST[‘password’])))
//{
//echo $_POST[‘username’].$_POST[‘password’];
//$uname=$_POST[‘username’];
//$pass=$_POST[‘password’];
//echo $uname;
//}
//else
//{
//$uname=””;
//}
//if(isset($_POST[‘password’]))
//{
//$pass=$_POST[‘password’];
//echo $uname.$pass;
//}
//else
//{
//$pass=””;
//}
include(“include.php”);
$query=”select * from admin where emailid=’$uname’ and password=’$pass'”;
$result=mysql_query($query);
$numrows=mysql_num_rows($result);
$username=mysql_result($result,0,”emailid”);
$password=mysql_result($result,0,”password”);
//$department=mysql_result($result,0,”department”);
//$session[‘usernam’]=$username;
//$session[‘passwrd’]=$password;
if($numrows>0)
{
header(“Location:adminhome.php”);
}
else
{
header(“Location:adminlogin.php”);
}
?>