I guess you have some sort of file called customer.php
so the link to that customer in the menu could be something like: customer.php?name=customername
and then in customer.php use the following:
<?php
$customer = $_GET['name'];
if(isset($customer) && !empty($customer)) {
$query = mysql_query("SELECT `id`, `customername`, `picpath` FROM `the table name` WHERE `customername` = '$customer'");
echo '<table>
<tr> <th>Foto</th> </tr><tr>';
while( $associate = mysql_num_rows($query)) {
echo '<td><img src="'.$associate['picpath'].'"></td>
</tr><tr>';
}
echo '</tr>
</table>';
} else {
header('Location: index.php');
exit();
}
?>