Hi I hope someone can help, the code below checks for the sections I need, but I want it to exclude if the warehouse_id is deleted ( this is in another table ‘damage_warehouses’ ‘deleted’=1 )
[php]//fetch the array of outstanding jobs
$sql = mysql_query(“SELECT id, warehouse_id, section, inspection_due, inspector, email FROM damage_warehouse_inspectionsections WHERE inspection_complete=‘0’”);
while($result = mysql_fetch_array($sql))
[/php]
Many thanks in advance