PHP Code Help

If you need help building your website, this is the place to hang out. If you're an HTML, PHP, Perl or web database geek, check it out. / Si vous avez besoin d'aide pour construire votre site web, c'est le forum à regarder! Si vous êtes un expert en HTML, PHP, Perl ou en base de données, c'est le forum pour vous!
Post Reply
Str_QNHL
The Addict / Le Drogué
Posts: 752
Joined: Fri Oct 28, 2005 2:42 pm
Location: Ste-Julie
Contact:

PHP Code Help

Post 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
_______________
Stephane Roy
STHS Beta Tester
STHS Support Team
http://qnhl.net
SimonT
STHS Owner / Propriétaire du STHS
Posts: 14758
Joined: Sat Oct 08, 2005 4:18 pm
Location: Montreal, Canada
Contact:

Re: PHP Code Help

Post by SimonT »

1) Show me the Link.
2) Try changing the ' in your lhink by a \"
-SimonT
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English V2 & V3 Manual - Manuel V2 & V3 Français
Str_QNHL
The Addict / Le Drogué
Posts: 752
Joined: Fri Oct 28, 2005 2:42 pm
Location: Ste-Julie
Contact:

Re: PHP Code Help

Post 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>
_______________
Stephane Roy
STHS Beta Tester
STHS Support Team
http://qnhl.net
Post Reply