|
|
|
php mysql - ขอคำแนะนำเรื่อง login หน่อยครับ เช็ค 3 ตาราง |
|
|
|
|
|
|
|
ก้อเช็คซิครับถ้า 3 ตารางนี้ มีความสัมพันธ์กันอยู่แล้ว
ก้อ join กัน แล้วเช็ค
|
|
|
|
|
Date :
2014-01-15 19:28:10 |
By :
champkung226 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
แบบนี้หรอครับ
Code (SQL)
SELECT
employee.employee_username,
employee.employee_password,
member.member_username,
member.member_password,
typeuser.typeuser_name
FROM
member
INNER JOIN typeuser ON member.typeuser_id = typeuser.typeuser_id
INNER JOIN employee ON typeuser.typeuser_id = employee.typeuser_id
แล้วก็ WHERE employee_username employee_password กับ member_username member_password
ผมจะกำหนดยังไง AND OR มันไม่ได้อะครับ ช่วยทีครับพี่ๆ
|
|
|
|
|
Date :
2014-01-15 19:51:41 |
By :
copyringht |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 03
|