Page 1 of 1

PHP Code Help

Posted: Tue Oct 22, 2013 1:50 pm
by Str_QNHL
need a little help with a line of code ..hope someone here can help me out.

this is the code,

<? if($TeamLocalScore08 != '') {echo "<td width='50' valign='middle' align='center' background='../images/nhl_logo86/Result.gif' <a href='/Archives/2013-2014-RegularSeason/QNHL8-$Game08.html'>FINAL</a> "; }?>

everything works and looks as I want except the link.... the FINAL shows up but I cant click on it
to get to the webpage.

what do I need to do to make it work ??

thanks for the help

Re: PHP Code Help

Posted: Tue Oct 22, 2013 5:38 pm
by SimonT
1) Show me the Link.
2) Try changing the ' in your lhink by a \"

Re: PHP Code Help

Posted: Wed Oct 23, 2013 8:20 am
by Str_QNHL
got it!

<? if($TeamLocalScore08 != '') {echo "<td width='50' valign='middle' align='center' background='../images/nhl_logo86/Result.gif' </td> <a href='/Archives/2013-2014-RegularSeason/QNHL8-$Game08.html'>FINAL</a> "; }?>

I was missing a </td>