Page 1 of 1

dynamic hyperlink help

Posted: Mon Dec 15, 2008 7:41 pm
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?

Re: dynamic hyperlink help

Posted: Mon Dec 15, 2008 8:41 pm
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.