Thanks for the feedback... why, yes, an SQL injection attack is less than desirable.
The $_GET['id'] is indeed an integer, so this works if I use the cast approach:
...
// if a link id is selected
$id = (int)$_GET['id'];
if ($id > 0) {
// then get all clients in that project category
$query = "SELECT client_roster.client_id, client_roster.project_id, client_roster.industry_id,
clients.client_name,
industries.industry_segment,
projects.project_type
FROM client_roster, clients, industries, projects
WHERE client_roster.client_id = clients.client_id
AND client_roster.industry_id = industries.industry_id
AND client_roster.project_id = projects.project_id
AND projects.project_id = '$id'
ORDER BY client_name ASC";
...
Alternatively, this is also working:
...
// if a link id is selected
$id= mysql_real_escape_string($_GET['id']);
...