•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 456,610 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,487 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1836 | Replies: 22
![]() |
•
•
Join Date: Nov 2007
Posts: 10
Reputation:
Rep Power: 2
Solved Threads: 0
i am and the header is in the right directory
here is my code again and i dont have a clue what is wrong
here is my code again and i dont have a clue what is wrong
<!--THIS INCLUDES HEADER.PHP--><?php get_header() ;?><!-- END -->
<div class="side"><?php if (have_posts()) ;?>
<?php $post = $posts[0]; // Thanks Kubrick for this code ;?>
<?php if (is_category()) { ;?>
<h3><?php _e('Archive for '); echo single_cat_title() ;?></h3>
<?php } elseif (is_day()) { ;?>
<h3><?php _e('Archive for '); the_time('F j, Y') ;?></h3>
<?php } elseif (is_month()) { ;?>
<h3><?php _e('Archive for '); the_time('F, Y') ;?></h3>
<?php } elseif (is_year()) { ;?>
<h2><?php _e('Archive for '); the_time('Y') ;?></h2>
<?php } elseif (is_author()) { ;?>
<h3><?php _e('Author Archive') ;?></h3>
<?php } elseif (is_search()) { ;?>
<h3><?php _e('Search Results') ;?></h3>
<?php } ;?>
<?php while (have_posts()): the_post() ;?>
<!--TITLE TAG-->
<h1><?php the_title() ;?></h1>
<!--END-->
<!--TIME DATE CATEGORY WORDS-->
<h2><?php the_time('F jS, Y'); ;?> by <?php the_author(); ;?> <?php comments_popup_link(__('0 Comments'), __('1 Comment'), __('% Comments'), 'commentslink', __('sorry, Comments off for this post.')) ;?> <BR>
Filed Under: <?php the_category(', ') ;?>
</h2>
<!--END-->
<?php if (is_search()) { ;?>
<?php the_excerpt() ;?>
<?php } else { ;?>
<?php the_content(__('Read more »'));?>
<!--COMMENTS TAG-->
<!--END-->
<br /> <br />
<?php comments_template(); // Get wp-comments.php template ;?>
<?php } ;?>
<!--
<?php trackback_rdf() ;?>
-->
<?php endwhile ;?>
<?php posts_nav_link('', __(''), __('« Previous entries')) ;?>
<?php posts_nav_link(' ', __(''), __('')) ;?>
<?php posts_nav_link('', __('Next entries »'), __('')) ;?>
<?php else: ?>
<h3><?php _e('Not Found'); ?></h3>
<p><?php _e('Sorry, but no posts matched your criteria.'); ?></p>
<?php endif; ?>
</div>
<!--THIS INCLUDES FOOTER.PHP-->
<?php get_footer(); ?><!-- END --> •
•
Join Date: Jun 2007
Location: Valley Center, Kansas
Posts: 643
Reputation:
Rep Power: 3
Solved Threads: 72
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- error "cannot find server- Microsoft Internet Explorer". (Web Browsers)
- Check my code, There is 1 error, cant find it (C++)
- Runtime error:453 cannot find dllentrypoint (Visual Basic 4 / 5 / 6)
- HELP! t_string error (PHP)
- DNS error cannot find server (Windows NT / 2000 / XP / 2003)
- syntax error that I just can't seem to find! (Visual Basic 4 / 5 / 6)
- "Cannot find server or DNS Error" (Web Browsers)
Other Threads in the PHP Forum
- Previous Thread: Using mysqli_bind_param with an unknown number of variables
- Next Thread: PHP Classes


Linear Mode