Here is the Code
<?php require_once('Connections/company.php'); ?>
<?php
$colname_showemail = "-1";
if (isset($_GET['id'])) {
$colname_showemail = (get_magic_quotes_gpc()) ? $_GET['id'] : addslashes($_GET['id']);
}
mysql_select_db($database_company, $company);
$query_showemail = sprintf("SELECT id, email FROM company_details WHERE id = %s", $colname_showemail);
$showemail = mysql_query($query_showemail, $company) or die(mysql_error());
$row_showemail = mysql_fetch_assoc($showemail);
$totalRows_showemail = mysql_num_rows($showemail);
?>
<?
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html xmlns=\"http:\/\/www.w3.org/1999/xhtml\">
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />
<title>OurTown - Show Email</title>
</head>
<body>";
include ('secureimage.php');
echo"<hr>";
echo "Script © 2006 - <a href=\"http:\/\/www.captcha.net\" target=\"_blank\">CaptchaDotNet</a>";
include ('copy.php');
echo "</body>
</html>";
?>
<?php
mysql_free_result($showemail);
?>