echo "<td><a href=\"mailto:", $row['Email'], "\">", $row['Email'], "</a></td>";
Cheers, David.
On 19/09/2004, at 3:31 PM, Pete Holsberg wrote:
I have a database that has an email field. I would like the web page that is created dynamically from this database to have a "mailto:" link for each email address but I don't know what to put in the email field.
I tried replacing
echo "<td>{$row['Email']}</td>\n";
with
echo "<td><a href=mailto:{$row['Email']}>{$row['Email']}</a></td>\n";
but that didn't work.
Thanks.
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Dr David Orlovich, Department of Botany, University of Otago, P.O. Box 56, Dunedin, New Zealand.
Phone: +643 479 9060 Fax: +643 479 7583 www: http://www.botany.otago.ac.nz/
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php