Parse error: parse error, unexpected $ in /home/shanest/public_html/wp-content/themes/shanest/index.php on line 24
That's for the following 23 lines of code:
<?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=" $forum_id['forum_id'] ?>"><? the_category_unicode(); ?> Forum</a>
</div>
<?php endwhile; ?>
<?php include "searchform.php"; ?>
<?php include "footer.php"; ?>
What's causing the error?
That's for the following 23 lines of code:
<?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=" $forum_id['forum_id'] ?>"><? the_category_unicode(); ?> Forum</a>
</div>
<?php endwhile; ?>
<?php include "searchform.php"; ?>
<?php include "footer.php"; ?>
What's causing the error?