1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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.
    SEMrush
     
    SBC, Oct 25, 2008 IP
    SEMrush
  2. MakeThatDollar

    MakeThatDollar Notable Member Premium Member

    Messages:
    4,451
    Likes Received:
    157
    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:
    251
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    And fixed thank you very much Dollar
     
    SBC, Oct 25, 2008 IP