 |
|
Code
Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\ws_shop_test\index.php:14) in C:\AppServ\www\ws_shop_test\index_member.php on line 36
มีข้อผิดพลาดแบบเดียวกันเกิดขึ้น 3 บรรทัดค่ะ คือ 36,37,38 ทำให้ไม่สามารถเข้าสู่ระบบเพื่อใช้งานได้เลยค่ะ
(โค้ด PHP )
Code (PHP)
<?php
$login_true_mem = $user_login ;
$name=$dbarr['name'];
session_register("login_true_mem") ;
session_register("name");//สร้าง session
$date = date( "Y-m-d H:i:s");
$time= date( "H:i:s");
$strSQL = "INSERT INTO tbl_userlogin (login_true_mem,datetime,time,ip ) VALUES ('$login_true_mem', '$date','$time','$REMOTE_ADDR' ) ";
mysql_query( $strSQL, $conn )
or die ( "INSERT มีข้อผิดพลาดเกิดขึ้น") . mysql_error();
setcookie("user","$user",time()+7200,""); // บรรทัดที่ 36
setcookie("pass","$password",time()+7200,""); // บรรทัดที่ 37
setcookie("date","$ToDay",time()+7200,""); // บรรทัดที่ 38
?>
Tag : - - - -
|
|
 |
 |
 |
 |
Date :
2009-09-19 17:16:53 |
By :
^_^ |
View :
1455 |
Reply :
6 |
|
 |
 |
 |
 |
|
|
|
 |