Hi guys
What I want to do is not show the rows where the id is the same as job_id in the other table. Here is my code but it isnt working
PHP Code:if (!empty($applications)) {
$checkapplications =" select * from applications";
$applicationsresult = mysql_query ($checkapplications);
while ($row = mysql_fetch_array($applicationsresult)){
$applicationid= $row["job_id"];
$query .= " AND id !='$applicationid' OR id !='$applicationid' ";
}
}
this is what is echoed out
SELECT *, date_format(startdate,'%d/%m/%Y') startdate FROM Jobs WHERE 1=1 AND id='' OR id !='4' OR id !='4' OR id !='5' OR id !='5' OR id !='4' OR id !='4' OR id !='3' OR id !='3' AND sitesystem ='0' ORDER BY ''








Bookmarks