Re: HTML question
| From: | David Orlovich | Date: | Sun, 19 Sep 2004 03:39:26 +0000 |
| Subject: | Re: HTML question | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-36247@lists.php.net to get a copy of this message | ||
I think you're just missing some double quotes (which you have to escape). How about something like this:
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/