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
Share on other sites

[quote author=JustNeedHelp link=topic=110757.msg448365#msg448365 date=1160186279]
And it must be because the other code works with $cat in it >>
[/quote]

So maybe 'short tags' aren't enabled for you, if you used printf's solution.
Link to comment
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.