|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Database Discussion Forum This is the place to find help resolving those nagging questions you have about implementing and using all kinds of databases. Need help writing a query? Need an opinion on Oracle? Post here! |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi I have a php/mysql database I have added a field for email but it is not clickable.
One of the standard fields is for URLs and this clicks through. How can I make my email field clickable. I have limited sql knowledge but I can find my way around using phpMyAdmin Any ideas? |
|
|||
|
Are you wanting to be able output the email to a web page with a clickable email or you wanting to be able to have a clickable email within the gui of an mySQL addon.
I'm not sure of the later might depend on the gui program you downloaded. But the first can be done by putting the email address in a the field. then write that field into the middle on the your a tag. ie >email me
__________________
http://www.freshfire.ca |
|
|||
|
Hi yes I want to output the email to a web page
The programme is a review programme and the following is an example Review Name joe blog address blog street URL. www.blog.com (this clicks through to the website) email: joeblog@blog.com (this I want clickable) |
|
|||
|
I'm not sure of all you are testing for. But lets say $config_field1 is your email field in the database
if ( $config_field_1 != "" ); {echo "<a href=mailto" $config_field_1 ">email me</a> I use PHP very little so my syntax maybe a little off but the logic is correct
__________________
http://www.freshfire.ca |
|
||||
|
Quote:
You ought to be able just to do this: Code:
if ($config_field_1 != "")
{
echo "<a href=mailto:$config_field_1>$config_field_1</a>";
$field_1 = true;
}
p.s. I'm not sure what the if ($config_field_1 != "") is all about, just use if ($config_field_1) instead.
__________________
Tom Corwine Please review my site at http://www.santaslane.com?source=WebPro and be sure to check out http://www.corwine.tv <--- It's fixed now. |
|
|||
|
This is a link to the page which shows the email address as text.
The config_field" is a field that either myself or a member can fill in. I believe that it is configerable to allow it to show as a search option or not. I am starting to wonder if it would be better just to make a new field? http://www.touringandtenting.com/cam...sub_cat_id=153 |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |