Wednesday, 15 April 2015

php - Make emails produced by query active links -



php - Make emails produced by query active links -

$result = mysql_query("select * my_table order company_name"); echo "<center><table border='1px' style='font-size: 12px;'> <center><tr> <th>contact email</th> </tr></center>"; while($row = mysql_fetch_array($result)) { echo "<tr>"; echo "<td>" . $row['contact_email'] . "</td>"; echo "</tr>"; } echo "</table></center>";

i need email addresses printed out links users can click on email address start email. possible?

nothing magical it...

echo <<< eol <td><a href="mailto:{$row['contact_email']}">{$row['contact_email']}</a></td> eol;

php hyperlink

No comments:

Post a Comment