Forum Moderators: coopster
Any ideas?
[php]
echo "<TABLE cellspacing=\"4\" cellpadding=\"5\">";
while ($row = mysql_fetch_assoc($result)) {
$email = 'email_address';
$mailto = '<a href="mailto:'.$email.'" target="_blank">'.$email.'</a>';
//echo "<TD align=\"left\" valign=\"top\" <span class=\"style3\">"$mailto;
//echo '<td align="left" valign="top"><span class="style3">'.$mailto;
echo "<TR>";
echo $row["name"];
echo "<br/>";
echo "<TD align=\"left\" valign=\"top\" <span class=\"style3\">".$mailto;
echo "<br/>";
echo "<align=\"left\" valign=\"top\" <span class=\"style3\">".$row["body"]."</TD>";
echo "</TR>";
}
echo "</TABLE>";
[/php]
It should look something like this:
$email = $row['email_address'];
Just remember to use the name of the column in the table if it is not email_address.