943,822 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 2811
  • PHP RSS
Jul 13th, 2004
0

linking issues

Expand Post »
Having problems with a site that is built in php and mysql.

The goal it for a page to list the name, city and phone of a service from a state, with no hyperlinks and this is currently setup and working correctly. Then I wanted to add a bonus if someone signs up they would have a featured area that would be hyperlinked from the list of names and would leave the other with no hyperlink.

What I did was add another field which was called ‘bonus’ to the mysql table and it creates a ‘Y’ in the column to acknowledge this feature. I added the dynamic field for linkage and that works correctly . It hyperlinks to the featured items like address and website.

Now comes the part that is stumping me:
I want to use the standard name on the page and create a hyperlink to the featured items and would leave all of the other names alone (unhyperlinked). I tried using the “show if� statement but was only able to hyper link all of the names and not just the one that I needed. I did some research in PHP and found an idea on how to do it with the “if� and “else� statement but can’t seem to make it work.

I would really love some input on how to make this function properly.

Thanks in advance for your time.

Andrew
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
snapsailing is offline Offline
1 posts
since Jul 2004
Jul 14th, 2004
0

Re: linking issues

Try pasting the code you have. It'll make the job easier.
Team Colleague
Reputation Points: 262
Solved Threads: 18
a.k.a inscissor
samaru is offline Offline
1,227 posts
since Feb 2002

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Getting words
Next Thread in PHP Forum Timeline: Creating Auto-Responder in PHP





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC