Jump to content

display mysql data as email


gwolff2005

Recommended Posts

Hi guys I need your help.

I would like the data from the column "user_login" being seen as an email link.

How can I do that?

Thousand Thanks

 

while($rows=mysql_fetch_array($result)){
?>
        <tr>
          <td><span class="style10"><? echo $rows['user_id']; ?></span></td>
          <td><span class="style10"><? echo $rows['user_first_name']; ?></span></td>
          <td><span class="style10"><? echo $rows['user_surname']; ?></span></td>
          <td><span class="style10"><? echo $rows['user_login']; ?></span></td>
          <td align="center"><a href="update.php?id=<? echo $rows['user_id']; ?>" class="style10">update</a></td>
        </tr>
        <?php
}

Link to comment
https://forums.phpfreaks.com/topic/231962-display-mysql-data-as-email/
Share on other sites

Really? If I was a user of your site and you were using my email as a link on the website, I would hunt you down and slash all your tires. Doing so means that spam-bots will pick up those email addresses and put your users on every spam list available.

 

But, since you ask:

<td><span class="style10"><a href="mailto:<?php echo $rows['user_login']; ?>"><?php echo $rows['user_login']; ?></a></span></td>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.