| | |
linking issues
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2004
Posts: 1
Reputation:
Solved Threads: 0
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
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
Try pasting the code you have. It'll make the job easier.
Check out my blog at http://www.shinylight.com for more stuff about web dev.
![]() |
Similar Threads
- Linking remote files (IT Professionals' Lounge)
- is dreamweaver is better tahn hand code? (IT Professionals' Lounge)
- I need a linking confirmation (C++)
- ASP.NET and Mozilla - Issues! (ASP.NET)
- Mail apps issues - error port 25 (Mac Software)
- Security Issues (*nix Software)
- Error Linking KeyLogger.exe (C++)
- Graphics Card issues Stop Command??? (Windows NT / 2000 / XP)
Other Threads in the PHP Forum
- Previous Thread: Getting words
- Next Thread: Creating Auto-Responder in PHP
| Thread Tools | Search this Thread |
apache api array basic body broken cache cakephp class cms code computing confirm cron curl customizableitems database date date/time delete dynamic email error file filter folder form forum freelancing function functions gc_maxlifetime google header headmethod howtowriteathesis href htaccess html iframe image include ip javascript joomla limit link list login malfunction memmory memory menu method msqli_multi_query multiple mycodeisbad mysql navigation neutrality oop parameter parsing paypal pdf php phpmysql query question random recourse regex root script search select seo server sessions snippet soap source space sql static support! system table thesishelp trouble tutorial update upload url variable video web webdesign xml youtube






