Forums

php5 doesn't like echo $cat; - alternative? (1 post)

  1. jeffcapeshop
    Member
    Posted 3 years ago #

    Hi,

    I've got a blog with the following code for rss:

    <a href="<?php bloginfo('rss2_url');?>&cat=<?php echo $cat; ?>" title="<?php _e('Syndicate this site using RSS'); ?>">rss</a>

    this gives a "Catchable fatal error" with php 5. If i remove the $cat; reference, it works fine. my poor coding showing me up no doubt!

    What can i do to fix this issue?

    thanks,

    jeff

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags