User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Nov 2007
Location: Arkansas
Posts: 416
Reputation: buddylee17 will become famous soon enough buddylee17 will become famous soon enough 
Rep Power: 3
Solved Threads: 81
buddylee17's Avatar
buddylee17 buddylee17 is offline Offline
Posting Pro in Training

Re: T_STRING error? i cant find it

  #11  
Nov 10th, 2007
Yeah sorry I updated my last post but I guess you didnt see it.

Line 3 should be: <?php if (have_posts()) :?>
and
Line 60 should be: <?php ; else: ?>
Reply With Quote  
Join Date: Nov 2007
Location: Arkansas
Posts: 416
Reputation: buddylee17 will become famous soon enough buddylee17 will become famous soon enough 
Rep Power: 3
Solved Threads: 81
buddylee17's Avatar
buddylee17 buddylee17 is offline Offline
Posting Pro in Training

Re: T_STRING error? i cant find it

  #12  
Nov 10th, 2007
Line 3 should be: <?php if (have_posts()) :?>
and
Line 60 should be: <?php ; else: ?>
Reply With Quote  
Join Date: Nov 2007
Posts: 10
Reputation: tattie is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
tattie tattie is offline Offline
Newbie Poster

Re: T_STRING error? i cant find it

  #13  
Nov 10th, 2007
nope still not working
Reply With Quote  
Join Date: Nov 2007
Location: Arkansas
Posts: 416
Reputation: buddylee17 will become famous soon enough buddylee17 will become famous soon enough 
Rep Power: 3
Solved Threads: 81
buddylee17's Avatar
buddylee17 buddylee17 is offline Offline
Posting Pro in Training

Re: T_STRING error? i cant find it

  #14  
Nov 10th, 2007
Try this on line 60:
<?php else: ?>

Also, do you have header.php in the same directory? If not, you'll get a Fatal Error: Call to undefined function get_header()
Last edited by buddylee17 : Nov 10th, 2007 at 9:27 pm.
Reply With Quote  
Join Date: Nov 2007
Posts: 10
Reputation: tattie is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
tattie tattie is offline Offline
Newbie Poster

Re: T_STRING error? i cant find it

  #15  
Nov 11th, 2007
nope it is still coming up with

Parse error: syntax error, unexpected T_ELSE in /home/tattie/public_html/index.php on line 60
Reply With Quote  
Join Date: Nov 2007
Location: Arkansas
Posts: 416
Reputation: buddylee17 will become famous soon enough buddylee17 will become famous soon enough 
Rep Power: 3
Solved Threads: 81
buddylee17's Avatar
buddylee17 buddylee17 is offline Offline
Posting Pro in Training

Re: T_STRING error? i cant find it

  #16  
Nov 11th, 2007
You are still getting parse errors? Read my last post again.
Reply With Quote  
Join Date: Nov 2007
Posts: 10
Reputation: tattie is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
tattie tattie is offline Offline
Newbie Poster

Re: T_STRING error? i cant find it

  #17  
Nov 11th, 2007
i am and the header is in the right directory

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(); ;?>  &nbsp;  <?php comments_popup_link(__('0 Comments'), __('1 Comment'), __('% Comments'), 'commentslink', __('sorry, Comments off for this post.')) ;?> &nbsp;  <BR>
Filed Under: <?php the_category(', ') ;?> &nbsp;
</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('', __(''), __('&laquo; Previous entries')) ;?>
<?php posts_nav_link('  ', __(''), __('')) ;?>
<?php posts_nav_link('', __('Next entries &raquo;'), __('')) ;?>

<?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 --> 
Reply With Quote  
Join Date: Jun 2007
Location: Valley Center, Kansas
Posts: 643
Reputation: kkeith29 is on a distinguished road 
Rep Power: 3
Solved Threads: 72
kkeith29's Avatar
kkeith29 kkeith29 is online now Online
Practically a Master Poster

Re: T_STRING error? i cant find it

  #18  
Nov 11th, 2007
why are you opening the php statement and closing it so many times. just echo the html within the php, it so much easier to see whats wrong because its easier to read.
Reply With Quote  
Join Date: Nov 2007
Location: Arkansas
Posts: 416
Reputation: buddylee17 will become famous soon enough buddylee17 will become famous soon enough 
Rep Power: 3
Solved Threads: 81
buddylee17's Avatar
buddylee17 buddylee17 is offline Offline
Posting Pro in Training

Re: T_STRING error? i cant find it

  #19  
Nov 12th, 2007
Line 3 should be: <?php if (have_posts()) :?>
Reply With Quote  
Join Date: Nov 2007
Posts: 10
Reputation: tattie is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
tattie tattie is offline Offline
Newbie Poster

Re: T_STRING error? i cant find it

  #20  
Nov 12th, 2007
omg i give in

theres a prob with line one now
http://www.janetjackson.org.uk
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 7:16 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC