Hyperlink display problem
| From: | markbm | Date: | Fri, 19 Jul 2002 18:39:57 +0000 |
| Subject: | Hyperlink display problem | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-20661@lists.php.net to get a copy of this message | ||
I am a beginner at using PHP, and am developing a product "template"
utilizing a MySQL database. Basically, what I am attempted to do, in the
code below is:
Code sample:
================================================
printf(($result["REL_PLAN1"]), mysql_result($result,0,"REL_PLAN1"));
================================================
Questions:
1. In the first part, print out the value of the REL_PLAN1 database field
for display purposes. The value in this field will be in the format
http://www.yahoo.com.
2. In the second part, make the value in the
mysql_result($result,0,"REL_PLAN1") field display on the page as a clickable
hyperlink.
Basically, I want the value displayed in part 1 to change depending on what
value is actually in the REL_PLAN1 db field (in part 2). Hope this makes
sense.
Any help would be greatly appreciated. Thanks.
Mark