boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

I need some Help Please.

 
Post new topic   Reply to topic    boardom Forum Index -> PHP help
View previous topic :: View next topic  
Author Message
Laura



Joined: 09 Feb 2003
Posts: 9

PostPosted: Wed Feb 19, 2003 11:04 am    Post subject: I need some Help Please. Reply with quote

Quote:
<?php /* Don't remove this line, it calls the b2 function files ! */ $blog=1; include ("blog.header.php"); ?>
<!-- // b2 loop start -->
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?>


<?php the_date("","<h2>","</h2>"); ?>
<?php permalink_anchor(); ?>
<div class="storyTitle"><?php the_title(); ?>
<a href="?cat=<?php the_category_ID() ?>" title="category: <?php the_category() ?>"><span class="storyCategory">[<?php the_category() ?>]</span></a> - 
<span class="storyAuthor"><?php the_author() ?> - <?php the_author_email() ?></span> @ <a href="<?php permalink_link() ?>"><?php the_time() ?></a>
</div>

<div class="storyContent">
<?php the_content(); ?>

<div class="rightFlush">
<?php link_pages("<br />Pages: ","<br />","number") ?> <?php comments_popup_link("comments ?", "1 comment", "% comments") ?>
<?php include ("b2comments.php"); ?>
</div>

</div>


<!-- // this is just the end of the motor - don't touch that line either Smile -->
<?php } ?>


Then I get this on the Front of my Website.

Quote:
Warning: Failed opening 'blog.header.php' for inclusion (include_path='') in /home/spargel/public_html/TheElders/index.php on line 125

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/spargel/public_html/TheElders/index.php on line 127


I'm trying to put it on my Main index.php page of my website. Only the News area that shows up. Here is a link to my website so you see what I am talking about. http://www.deadlygames.org/TheElders Some of you already tried to help me. But i'm a blonde when it comes to this stuff. Please forgive me for being a pain in the butt. I gave up on this and took a break to get the anger out of my system, so now I'm back. If any of you know this very well maybe I can put some trust into you to help me by doing it yourself?

Thanks.
Laura.
Back to top
View user's profile Send private message
GamerZ



Joined: 15 May 2002
Posts: 537
Location: Singapore

PostPosted: Wed Feb 19, 2003 1:38 pm    Post subject: Reply with quote

how come this is sticky?
_________________

++ GamerZ.Per.Sg - Complex Simplicity
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Laura



Joined: 09 Feb 2003
Posts: 9

PostPosted: Wed Feb 19, 2003 3:16 pm    Post subject: Reply with quote

So it will be notice and I get some help. Thats how come. Razz

Laura
Back to top
View user's profile Send private message
eadz



Joined: 06 Apr 2003
Posts: 28
Location: Auckland, New Zealand

PostPosted: Sun Apr 06, 2003 2:30 pm    Post subject: Reply with quote

well it says it can't include blog.header.php...

so if your index.php ( the file you are trying to work on ) is here :

/index.php

and blog.header.php is here :
/b2/blog.header.php

then you need to change include ("blog.header.php");
to
include ("/b2/blog.header.php");

although that may mean more problems as blog.header.php tries to include more files. Basicly, if it cant include something, make sure the path is right.
_________________
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dtdgoomba



Joined: 05 Aug 2002
Posts: 179
Location: Cambridge, MA

PostPosted: Sun Apr 06, 2003 5:52 pm    Post subject: Reply with quote

The typical problem is that the files were unzipped and the directory structure was not kept. That's what I see happening in these forums a lot, so you should make sure that was done correctly first. If it was and you changed some settings or moved files, just like eadz said, make sure your paths point to where you moved things.
_________________
Goombalooza! | Last X posts from Y Category | Login Box
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> PHP help All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group