Help w/ parse error
Posted: Fri Dec 24, 2004 2:06 pm
I am getting the following error:
Parse error: parse error, unexpected $ in /home/shanest/public_html/wp-content/themes/shanest/index.php on line 20
for the following <i>23</i> lines of code:
What is causing this error?
Parse error: parse error, unexpected $ in /home/shanest/public_html/wp-content/themes/shanest/index.php on line 20
for the following <i>23</i> lines of code:
Code: Select all
<?php include "header.php"; ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="headline"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></div>
<div class="subheadline">Posted to <?php the_category(', ') ?> at <?php the_time('g:i A') ?> on <? the_date(); ?></div>
<br />
<div class="story">
<?php the_content('Read the rest of this entry »'); ?>
</div>
<div class="storyfoot">
<?
$forum = mysql_query("SELECT * FROM wp_categories WHEN ID=the_category_ID();");
$forum_id = mysql_fetch_array($forum);
?>
Discuss in <a href="http://forum.shanest.com/index.php?action=vtopic&forum=<? $forum_idї'forum_id'] ?>"><? the_category_unicode(); ?> Forum</a>
</div>
<?php endwhile; ?>
<?php include "searchform.php"; ?>
<?php include "footer.php"; ?>