<?
$id_project=$_GET['id_project'];
$sql="select * from tbl_project_app order by id_application ASC";
$query=mysql_query($sql);
while($row = mysql_fetch_array($query)){
?>
<? $sql_re="select * from tbl_application where id_app not in (".$row[id_application].")order by id_app ASC";
$query_re=mysql_query($sql_re,$conn);
while($re=mysql_fetch_array($query_re)){
?>
<? }?>
<? } ?>