HOME > PHP > PHP Forum > $_Seesion ฟ้องแบบนี้คือะไรครับ session_start(); Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3
$_Seesion ฟ้องแบบนี้คือะไรครับ session_start(); Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3
//register
$id=$_POST['id'];
$user=$_POST['user'];
$pass=md5(md5($_POST['pass']));
//member
$sql="SELECT * FROM tb_member WHERE username='$user' AND password='$pass'";
$result=mysql_query($sql) or die (mysql_error());
$rs=mysql_num_rows($result);
if($rs==1){//login as bussinessaccount
$_SESSION['login'] = "$user";
$_SESSION['user'] = $rs['username'];
$_SESSION['statuses'] = $rs['status'];
msgbox("Login Success Welcome $user");
//redirect("index.php");
}else{
msgbox("Username || Password Incorrect ");
//redirect("index.php");
}
echo "status :".$rs['status'];
ไม่มีอะไรอยู่ก่อน session_start(); นะครับ
status :
Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0