<form id="form1" name="form1" method="post" action="">
<?
session_start();
if($_SESSION['user_id'] == "")
{
echo "Please Login!";
exit();
}
if($_SESSION['status'] != "1")
{
echo "This page for user only" ;
exit();
}
include ("connect.php");
$SQL = "SELECT * FROM member WHERE user_id = ' ".$_SESSION['user_id']." ' ";
$Query = mysql_query($SQL);
$Result = mysql_fetch_array($Query);
?>
<div align="center" class="style7"><?=$Result["username"];?></div>
</form>
มันขึ้นแบบนี้ค่ะ ต้องแก้ยังไงคะ รบกวนด้วยนะคะ
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\AppServ\www\pleng\home.php:11) in C:\AppServ\www\pleng\home.php on line 61
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\AppServ\www\pleng\home.php:11) in C:\AppServ\www\pleng\home.php on line 61