JTapp Posted April 29, 2008 Share Posted April 29, 2008 Does this look right to you guys? I'm seeing the email address returned, but its adding my website address in front of the email address. $variable12=$row["Email"]; echo "<a href=\"$variable12\">Click Here To Email</a>"; Link to comment https://forums.phpfreaks.com/topic/103448-solved-pulling-email-addresses-from-database-do-i-have-it-right/ Share on other sites More sharing options...
947740 Posted April 29, 2008 Share Posted April 29, 2008 Try changing your [/url] to </a> Link to comment https://forums.phpfreaks.com/topic/103448-solved-pulling-email-addresses-from-database-do-i-have-it-right/#findComment-529744 Share on other sites More sharing options...
JTapp Posted April 29, 2008 Author Share Posted April 29, 2008 huh? is that a typo? Link to comment https://forums.phpfreaks.com/topic/103448-solved-pulling-email-addresses-from-database-do-i-have-it-right/#findComment-529757 Share on other sites More sharing options...
947740 Posted April 29, 2008 Share Posted April 29, 2008 The website automaticall changes the closing anchor link to a [/url]. It did that to yours too, which is what I was commenting on. Link to comment https://forums.phpfreaks.com/topic/103448-solved-pulling-email-addresses-from-database-do-i-have-it-right/#findComment-529760 Share on other sites More sharing options...
JTapp Posted April 29, 2008 Author Share Posted April 29, 2008 sorry - you lost me. I'm self-teaching myself this stuff.. Link to comment https://forums.phpfreaks.com/topic/103448-solved-pulling-email-addresses-from-database-do-i-have-it-right/#findComment-529765 Share on other sites More sharing options...
947740 Posted April 29, 2008 Share Posted April 29, 2008 The forum replaces </a> with [/url]. Can you post the exact output of the code? Link to comment https://forums.phpfreaks.com/topic/103448-solved-pulling-email-addresses-from-database-do-i-have-it-right/#findComment-529769 Share on other sites More sharing options...
JTapp Posted April 29, 2008 Author Share Posted April 29, 2008 I've attached a jpg screenshot - hopefully this is what you are looking for..? [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/103448-solved-pulling-email-addresses-from-database-do-i-have-it-right/#findComment-529779 Share on other sites More sharing options...
947740 Posted April 29, 2008 Share Posted April 29, 2008 Post the result of the code, what you mentioned here: I'm seeing the email address returned, but its adding my website address in front of the email address. Link to comment https://forums.phpfreaks.com/topic/103448-solved-pulling-email-addresses-from-database-do-i-have-it-right/#findComment-529783 Share on other sites More sharing options...
JTapp Posted April 29, 2008 Author Share Posted April 29, 2008 its putting my website link in and then the email address: http://www.mywebsite.com/myfilefolder/[email protected] Link to comment https://forums.phpfreaks.com/topic/103448-solved-pulling-email-addresses-from-database-do-i-have-it-right/#findComment-529787 Share on other sites More sharing options...
JTapp Posted April 29, 2008 Author Share Posted April 29, 2008 My variable 4 works just fine... Link to comment https://forums.phpfreaks.com/topic/103448-solved-pulling-email-addresses-from-database-do-i-have-it-right/#findComment-529788 Share on other sites More sharing options...
947740 Posted April 29, 2008 Share Posted April 29, 2008 Change <a href=\"$variable12\"> To <a href=\"mailto:$variable12\"> Link to comment https://forums.phpfreaks.com/topic/103448-solved-pulling-email-addresses-from-database-do-i-have-it-right/#findComment-529789 Share on other sites More sharing options...
JTapp Posted April 29, 2008 Author Share Posted April 29, 2008 Perfect (and logical) - thank you very much. Link to comment https://forums.phpfreaks.com/topic/103448-solved-pulling-email-addresses-from-database-do-i-have-it-right/#findComment-529796 Share on other sites More sharing options...
947740 Posted April 30, 2008 Share Posted April 30, 2008 You are very welcome. Link to comment https://forums.phpfreaks.com/topic/103448-solved-pulling-email-addresses-from-database-do-i-have-it-right/#findComment-530274 Share on other sites More sharing options...
JTapp Posted October 8, 2008 Author Share Posted October 8, 2008 This line has suddenly stopped working for me.. any ideas? echo "<td class=\"td_id\"><a href=\"mailto:$variable5\"></td>\n"; Link to comment https://forums.phpfreaks.com/topic/103448-solved-pulling-email-addresses-from-database-do-i-have-it-right/#findComment-660308 Share on other sites More sharing options...
947740 Posted November 12, 2008 Share Posted November 12, 2008 echo "<td class=\"td_id\"><a href=\"mailto:$variable5\">Text</a></td>\n"; Link to comment https://forums.phpfreaks.com/topic/103448-solved-pulling-email-addresses-from-database-do-i-have-it-right/#findComment-688705 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.