Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将从 2 个表进行登录会话。如果用户名和密码匹配,则进行操作连接表。而不是从连接表中的所有字段进行会话。有人知道那个查询吗?
我一直在尝试但它不起作用:
$sql = "SELECT * FROM table1, table2 WHERE username='$username' && password='$password' && table1.FK = table2.PK)";
尝试将你&&的 s换成ANDs
&&
AND
如果这不起作用,您能否让我们知道您的查询的实际输出是什么?