dynamic hyperlink help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cdoyle
Forum Contributor
Posts: 102
Joined: Wed Feb 13, 2008 7:26 pm

dynamic hyperlink help

Post by cdoyle »

Hi,

I've been looking at this for a few minutes and not sure why this isn't working in IE.

I have the following query

Code: Select all

 
 $getcollege = $db->execute("SELECT `college_name`, `college_id` FROM `college` WHERE `college_ID`=?", array($player->City_ID));
 
and trying to make a hyperlink using the ID.

Code: Select all

 
 $getcollege1 = $getcollege->fetchrow;
 echo "<a href=\"education.php?act=getclasses&collegeid=" . $getcollege1['college_id'] ."\">" . $getcollege1['college_name'] . "</a>";
 
This works fine in Firefox, the hyperlink is clickable.

but in IE, the text appears on the page, but it's not a link.
What am I overlooking?
cdoyle
Forum Contributor
Posts: 102
Joined: Wed Feb 13, 2008 7:26 pm

Re: dynamic hyperlink help

Post by cdoyle »

I figured it out, I had a div tag earlier in the page that wasn't closed properly and that was messing up the link in IE.
Post Reply