Client List

0){ $sql_select_work_for_client_query = "SELECT * FROM `projects` WHERE `project_client_id`='$client_id' AND `displayable`='Yes' ORDER BY `id` DESC LIMIT 1"; $sql_select_work_for_client_result = mysql_query($sql_select_work_for_client_query); while($row = mysql_fetch_array($sql_select_work_for_client_result)) { $project_id = $row["id"]; } }else{ $sql_select_work_for_client_query = "SELECT * FROM `projects` WHERE `project_contractor_id`='$client_id' AND `displayable`='Yes' ORDER BY `id` DESC LIMIT 1"; $sql_select_work_for_client_result = mysql_query($sql_select_work_for_client_query); while($row = mysql_fetch_array($sql_select_work_for_client_result)) { $project_id = $row["id"]; } } if($i==3){ echo"
"; }else{ echo"
"; } if($project_id!=""){ echo"\"$client_name\""; }else{ echo"\"$client_name\""; } echo"
"; $i++; } } ?>