Forum Moderators: coopster

Message Too Old, No Replies

making a link active

Close.. but missing?

         

henry0

6:52 pm on Nov 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I printf fine but cannot make the link working

while($query_data = mysql_fetch_array ($result) ) {
printf ("<tr><td width=250>%s %s </td><td width=250>%s %s </td></tr>\n", "ORG Name:",
$query_data [ "link_title" ] ,
"Web Address&nbsp;:". $query_data [ "http" ] . $query_data ["link_url"],"CLICK"."</a>");
}

This is the result:(instead of hiding the "href" and making it hot!)
<<<
Web Address :a href=http://www.flcb.org CLICK
>>>

["http] id by DB default: a href=http://www.
["link_url"] is the web address as: flcb.org

what do I miss

thanks

regards
Henry

killroy

7:05 pm on Nov 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The <

Also, taking www. for granted is dangerous... none of my sites use it...

while($query_data = mysql_fetch_array ($result) ) {
printf ("<tr><td width=250>%s %s </td><td width=250>%s %s </td></tr>\n", "ORG Name:",
$query_data [ "link_title" ] ,
"Web Address&nbsp;:<". $query_data [ "http" ] . $query_data ["link_url"],"CLICK"."</a>");
}

SN

henry0

7:13 pm on Nov 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks Killroi
While you were typing I figured that I missed the <
However it now results in showing nothing!

Plus if it is an inappropriate way
what do you recommend

henry0

7:31 pm on Nov 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



OK I works
but I would appreciate comments on the "dangerous" aspect

regards

HEnry