Im利用以下询问从数据库中提取记录:
$query = "SELECT password, salt, jobseeker as type
FROM ip_jobseekers
WHERE ipJ_username = $username
UNION
SELECT password, salt, company as type
FROM ip_companies
WHERE ipC_username = $username ;";
$result = mysql_query($query);
//No Such User
if (mysql_num_rows($result) < 1) {
header( Location: login.php?login=fail ); exit;}
召开新的会议:
//login successful
else {$_SESSION[ user ] = $username;}
我想将用户类别列入本届会议,以便我能够具体说明哪些内容被删除给用户。 可否利用“公司”和“求职者”部分来做这项工作? 我曾多次尝试这样做,但我没有成功。
任何帮助都将受到高度赞赏。
Thanks. Kai.