Skip to main content
October 2, 2008
Answered

PHP Code Help!

  • October 2, 2008
  • 4 replies
  • 354 views
Hello,

I've inserted two dynamic fields from my database onto a page. One is the name of a person, the second is their email address - I've surrounded these two fields with a repeat region. How do I turn that email address into a "mailto:" link?

One more issue I have . . .

I have a table with two fields - the "long" name of a file ie: Agendas - October 1, 2008 - and a field that holds the actual file name "agenda_10-08.pdf"

The display page only holds the "long" name field. How do I link that field to the actual file name that is stored in another directory? I know how to do it with an image . . . . but not with a text field.

Thanks!

This must be easy . . . but I'm just learning PHP
This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer Newsgroup_User
I use a newsreader to view these forums and don't see edits to posts.

This should work for your second question:

<a href="SomeFolder/<?php echo $row_rsFiles['fileName']; ?>"><?php echo
$row_rsFiles['longName']; ?></a>

--
Ken Ford
Adobe Community Expert Dreamweaver/ColdFusion
Adobe Certified Expert - Dreamweaver CS3
Adobe Certified Expert - ColdFusion 8
Fordwebs, LLC
http://www.fordwebs.com


"yosemitelover" <webforumsuser@macromedia.com> wrote in message
news:gc1h99$j2i$1@forums.macromedia.com...
> Thanks sooo much Ken . . . gosh it sure was simple!
>
> Can anyone help me with my second issue?
>
> Thanks!
> Deborah

4 replies

October 2, 2008
Thanks again Ken!!!

I'm learning something new everyday!!!

Deborah
Newsgroup_UserCorrect answer
Inspiring
October 2, 2008
I use a newsreader to view these forums and don't see edits to posts.

This should work for your second question:

<a href="SomeFolder/<?php echo $row_rsFiles['fileName']; ?>"><?php echo
$row_rsFiles['longName']; ?></a>

--
Ken Ford
Adobe Community Expert Dreamweaver/ColdFusion
Adobe Certified Expert - Dreamweaver CS3
Adobe Certified Expert - ColdFusion 8
Fordwebs, LLC
http://www.fordwebs.com


"yosemitelover" <webforumsuser@macromedia.com> wrote in message
news:gc1h99$j2i$1@forums.macromedia.com...
> Thanks sooo much Ken . . . gosh it sure was simple!
>
> Can anyone help me with my second issue?
>
> Thanks!
> Deborah

October 2, 2008
Thanks sooo much Ken . . . gosh it sure was simple!

Can anyone help me with my second issue?

Thanks!
Deborah
Inspiring
October 2, 2008
<a href="mailto:<?php echo $row_rsNames['email']; ?>"><?php echo
$row_rsNames['email']; ?></a>

--
Ken Ford
Adobe Community Expert Dreamweaver/ColdFusion
Adobe Certified Expert - Dreamweaver CS3
Adobe Certified Expert - ColdFusion 8
Fordwebs, LLC
http://www.fordwebs.com


"yosemitelover" <webforumsuser@macromedia.com> wrote in message
news:gc136v$27v$1@forums.macromedia.com...
> Hello,
>
> I've inserted two dynamic fields from my database onto a page. One is the
> name
> of a person, the second is their email address - I've surrounded these two
> fields with a repeat region. How do I turn that email address into a
> "mailto:"
> link?
>
> This must be easy . . . but I'm just learning PHP
>
> Thanks!
>
>
>