I am currently using this code to display mysql records in a html table
<?php
while($row = mysqli_fetch_assoc($records)){
echo "<tr>";
.
.
echo '<td> <a href = " mailto: '. $row["Email1"] . ' " > '. $row["Email1"] . ' </a> </td>';
.
.
echo "</tr>";
}
?>
It works fine except that it opens the email on the same page and I need it in a new tab or new page. I have found out that I need to include target="_blank", but where to put the single/double quotes is giving me brain fade and I haven't got it working yet. Can someone show me a working example and is this the best approach?
Cheers.