What's wrong with this

Discussion in 'PHP' started by SBC, Oct 25, 2008.

  1. #1
    I'm getting this error on my new website/blog when I try to see if the 404 page is working

    Parse error: syntax error, unexpected T_ENDWHILE in /home/jay/public_html/endcow/wp-content/themes/corporate/404.php on line 11

    <?php get_header(); ?>
    
     <!-- posts  -->
    <div id="posts" class="span-16 prepend-1 append-1">
    	<div class="post">
    		<h2>Not found!</h2>
    		<p><?php _e('Sorry, this page does not exist.'); ?></p>
    		<?php include (TEMPLATEPATH . "/searchform.php"); ?>	
    	</div>		
    
    <?php endif; ?>
    </div>
    	
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>
    PHP:

    Can anyone help me thanks.
     
    SBC, Oct 25, 2008 IP
  2. MakeThatDollar

    MakeThatDollar Notable Member

    Messages:
    4,451
    Likes Received:
    158
    Best Answers:
    0
    Trophy Points:
    225
    #2
    You don't have a starting IF statement.

    Just try removing the <?php endif; ?> line.
     
    MakeThatDollar, Oct 25, 2008 IP
  3. SBC

    SBC Peon

    Messages:
    250
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    And fixed thank you very much Dollar
     
    SBC, Oct 25, 2008 IP