Jump to content

Help With One Line


JustNeedHelp

Recommended Posts

I have one line of script that isn't working and I'm not sure why... Could someone help me

[code]<?php
echo ('<a href="'.$acfolder.'rss.php?get_cat='.$cat.'"><img src="/content/images/icons/rss.gif" alt="RSS Feed" width="40" height="40" border="5" style="border-color:#02a5cb" /></a>')
?>[/code]
That code works which means my variables are correct

[code]<link rel="alternate" type="application/rss+xml" title="<?php echo ($cat) ?>" href="<?php echo ($acfolder.'rss.php?get_cat='.$cat) ?>" />[/code]
This code doesnt work... can anyone fix it for me?


Link to comment
https://forums.phpfreaks.com/topic/23237-help-with-one-line/
Share on other sites

Can we see where these lines are located in your script? Is the one that works before or after the one that doesn't work? Are either of them in a function? We need to see more of your script to be able to help you. Having seen two lines out of context does us no good.

Ken
Link to comment
https://forums.phpfreaks.com/topic/23237-help-with-one-line/#findComment-105548
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.