Solved

Turn field into mailto in mysql database

Posted on 2011-03-09
2
345 Views
Last Modified: 2013-12-13
I have a listing for my database and want to be able to send an email by clicking on the emails to click on the listing
this is part of my code
without the option
 <td><?php echo $row_languageLinks['Email']; ?></td>
with this the email appears but I cannot click on it
this is what I tried but It does not work
Please can you help me
<td><?php echo <a href="mailto $row_languageLinks['Email']"></a>; ?></td>

Open in new window

0
Comment
Question by:ChristianeGuise
2 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 35090391
You have them out of order.  Try this.
<td><a href="mailto:<?php echo $row_languageLinks['Email']; ?>"></a></td>

Open in new window

0
 
LVL 23

Expert Comment

by:OP_Zaharin
ID: 35090436
you can try this:

<?php
  echo '<a href="mailto:' . $row_languageLinks['email'] . '">' . $row_languageLinks['email'] . '</a>';
?>
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question