Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

PHP Code Help!

Guest
Oct 01, 2008 Oct 01, 2008
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
TOPICS
Server side applications
350
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Oct 02, 2008 Oct 02, 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.macromedi...
Translate
LEGEND ,
Oct 01, 2008 Oct 01, 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!
>
>
>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 01, 2008 Oct 01, 2008
Thanks sooo much Ken . . . gosh it sure was simple!

Can anyone help me with my second issue?

Thanks!
Deborah
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 02, 2008 Oct 02, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 02, 2008 Oct 02, 2008
LATEST
Thanks again Ken!!!

I'm learning something new everyday!!!

Deborah
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines