Thread: PHP Question
View Single Post
Old 08-24-2011, 04:36 PM  
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
Quote:
Originally Posted by BCyber View Post
I've moved it around which doesn't seem to help either.

Parse error: syntax error, unexpected T_STRING in *****/index.php on line 43

Code:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<?php $key="featured_external"; $custom = get_post_meta($post->ID, $key, true); ?>

<?php if ( $paged < 2 ) {
$my_paged = 0;
} else {
$my_paged = ($paged ? 1) * get_option('posts_per_page');
}
$count = 1;
?>
<div class="site clearfix" id="rgmevlsotukficza6158">

<a href="<?php $key="featured_external"; echo get_post_meta($post->ID, $key, true); ?>"title="<?php the_title(); ?>">
<?php if ( has_post_thumbnail()) the_post_thumbnail('featured-thumb', array('class' => 'thumb')); ?>
</a>

<a target="_blank" href="http://www.link-paysite.com" class="join-link">Visit Paysite # 01 NOW !</a>
<h1><?php echo $my_paged + $count . ?. ?; ?> <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
<p><?php the_content(''); ?></p>
<a target="_blank" href="http://www.link.com" class="tour" id="ukplowdzgxbhtncyeqf7410">Free Preview</a>
<p class="clear"></p>
</div>
<?php $count = $count + 1; ?>
<?php endwhile; endif; ?>
well, the code is pretty much a mess and it has several things to fix, but related to this function, I'd say your problem is in the formatting AGAIN. Just replace those ?. ?; with ". "; and see if it solves the issue. Also, I don't know why you need those strange id or 2 different clears or class + id for the same element, just clean things up and it will be a lot easier for you to locate errors
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote