thanks for your help.....
i fixed it using this suggestion.... found here http://us2.php.net/manual/en/function.mysql-query.php
here's my code now.....
<?php
$connection = mysql_connect("localhost","xxx","xxx") or die(mysql_error());
$db = mysql_select_db("xxx",$connection) or die(mysql_error());
$cust = $_GET['custid'];
$data = sprintf("SELECT DISTINCT customers_email_address FROM customers WHERE customers_id = '$cust'");
$result = mysql_query($data);
if (!$result) {
$message = 'Invalid query: ' . mysql_error() . "\n";
$message .= 'Whole query: ' . $data;
die($message);
}
while ($row = mysql_fetch_assoc($result)) {
echo $row['customers_email_address'];
}
mysql_free_result($result);
?>
i'm stoked - it took me hours!