Re: Dynamic Email Address in an HTML table
| From: | Michael Forbes | Date: | Mon, 10 May 2004 00:21:56 +0000 |
| Subject: | Re: Dynamic Email Address in an HTML table | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-34336@lists.php.net to get a copy of this message | ||
Two alternatives:
One is to store the entire string "<a href='mailto:me@here.com'>" in your field. The other is to just store the field, but concat the string together when you echo/print it. i.e.,:
print "<a href='mailto:$recordset[email]'>";
Phpdiscuss - Php Newsgroups And Mailing Lists wrote:
Hello, I have a page displaying the results of a query from a mysql database. The final field displayed is an email address (in text datatype from the table). How can I create the email address in the field as a hyperlink to the email address? Since my query loops through the database and displayes a "row" per row in the db. EX:Field 1 Field 2 EmailAddress Test Test me@here.comIn the email address field, the address shows up as text, how can I create that as a mailto:me@here.com (or whatever the email address is). Thank you Terry