|
|
|
ไม่เข้าใจ Parse error: syntax error, unexpected T_STRING in C:\AppServ\www\Project\indexCheck.php |
|
|
|
|
|
|
|
<? session_start();
$user = $_POST['user'];
$pass = $_POST['pass'];
$conn = mysql_connect("localhost","root","1234") or exit("Error a server");
mysql_select_db("test",$conn) or die("NOT Found Database");
$sql = "select * from member where user = '$user'";
$table = mysql_query($sql) or die("Error : $sql <hr>" mysql_error()); <------มันฟ้องว่าเออเรอบรรทัดนี้อะครับ
$count = mysql_num_rows($table);
if($count != 0)
{
$row = mysql_fetch_array($table);
$_SESSION['ss_mid'] = $row['m_id'];
$_SESSION['ss_user'] = $row['user'];
exit("<script> alert('welcome $user');
window.location = 'home3.php'; </script>");
}
else
{ exit("<script>alert('คุณกรอก usernam or passwpord ไม่ถูกต้อง');
history.back();</script>"); }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
ขอโทดครับที่รูปมันเล็กนิดเดียว -*- ไม่ทันสังเกต
|
|
|
|
|
Date :
2009-09-20 16:28:55 |
By :
Vicis |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$table = mysql_query($sql) or die("Error : $sql <hr>" . mysql_error());
|
|
|
|
|
Date :
2009-09-20 16:50:15 |
By :
plakrim |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ลืมตัวเชื่อม ซะงั้น
|
|
|
|
|
Date :
2009-09-21 11:11:37 |
By :
taobsd |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 05
|