gwolff2005 Posted March 28, 2011 Share Posted March 28, 2011 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 } Quote Link to comment https://forums.phpfreaks.com/topic/231962-display-mysql-data-as-email/ Share on other sites More sharing options...
Psycho Posted March 28, 2011 Share Posted March 28, 2011 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> Quote Link to comment https://forums.phpfreaks.com/topic/231962-display-mysql-data-as-email/#findComment-1193303 Share on other sites More sharing options...
gwolff2005 Posted March 28, 2011 Author Share Posted March 28, 2011 Hi Mjdamato, thanks!!! reg. hunting down... you are right. Thats why this file is in a non accessible directory. Just for me to see who registered... Thanks again. Quote Link to comment https://forums.phpfreaks.com/topic/231962-display-mysql-data-as-email/#findComment-1193323 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.