 |
boardom b2 message board
|
View previous topic :: View next topic |
Author |
Message |
joan
Joined: 22 Dec 2003 Posts: 9
|
Posted: Mon Dec 22, 2003 9:38 pm Post subject: Error. |
|
|
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/marykate/public_html/joan/index.php on line 14
I know all of my MySQL information is correct in the config, so I'm very confused as to why I'm getting this. Can somebody please help me? |
|
Back to top |
|
 |
epolady
Joined: 30 Jul 2002 Posts: 800 Location: Texas
|
Posted: Tue Dec 23, 2003 12:58 am Post subject: |
|
|
Do you have Code: | <?php /* Don't remove this line, it calls the b2 function files ! */ $blog=1; include ("blog.header.php"); ?> | At the top of your index.php?
If not, see my sig. _________________ Please, no PMs.
Do a search before posting a question.
We're not mind readers, provide URLs and/or source code. |
|
Back to top |
|
 |
joan
Joined: 22 Dec 2003 Posts: 9
|
Posted: Wed Dec 24, 2003 10:24 pm Post subject: |
|
|
It's working now, but it goes back to the default template, and ignores my html telling to to have a red background and image header. How can I prevent it from going to the default template? What do I need to edit?
You can look at it here. |
|
Back to top |
|
 |
epolady
Joined: 30 Jul 2002 Posts: 800 Location: Texas
|
Posted: Thu Dec 25, 2003 2:36 am Post subject: |
|
|
you probably have to edit index.php. Which page is your blog page? All of your pages are .php so I'm a bit unsure on which is your actual blog page. _________________ Please, no PMs.
Do a search before posting a question.
We're not mind readers, provide URLs and/or source code. |
|
Back to top |
|
 |
joan
Joined: 22 Dec 2003 Posts: 9
|
Posted: Thu Dec 25, 2003 6:54 pm Post subject: |
|
|
my blog page is the one i linked you to, index.php. I edited it on the b2 edit template thing, and on ftp. but when i go to save it on the b2 edit template, it erases like all of it. |
|
Back to top |
|
 |
epolady
Joined: 30 Jul 2002 Posts: 800 Location: Texas
|
Posted: Fri Dec 26, 2003 1:20 am Post subject: |
|
|
I prefer editing on my local computer, and uploading via FTP.
I only see this in your index.php
Code: | <html>
<head>
<img src="joan.png" usemap="#Map">
<map name="Map">
<area shape="rect" coords="400,231,428,248" href="girl.php">
<area shape="rect" coords="430,231,462,249" href="index.php">
<area shape="rect" coords="466,231,520,247" href="domain.php">
<area shape="rect" coords="523,229,564,248" href="exit.php">
</map> |
_________________ Please, no PMs.
Do a search before posting a question.
We're not mind readers, provide URLs and/or source code. |
|
Back to top |
|
 |
joan
Joined: 22 Dec 2003 Posts: 9
|
Posted: Fri Dec 26, 2003 6:08 pm Post subject: |
|
|
I uploaded on my FTP several days ago. However, it seems to be ignoring it. The code there is this:
[code]<?php /* Don't remove this line, it calls the b2 function files ! */ $blog=1; include ("blog.header.php"); ?>
<head>
<body bgcolor="#541010" text="#000000" link="#000000" vlink="#000000" alink="#000000">
</head>
<body>
<div id="header" style="position:absolute; top:25px; left:13px; width: 800px; height: 768px;">
<img src="joan.png" width="800" height="600" border="0" usemap="#Map">
<map name="Map">
<area shape="rect" coords="400,231,428,248" href="girl.php">
<area shape="rect" coords="430,231,462,249" href="index.php">
<area shape="rect" coords="466,231,520,247" href="domain.php">
<area shape="rect" coords="523,229,564,248" href="exit.php">
</map>
<!-- // b2 loop start -->
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?>
<?php the_date("d.m.y","<h1>","</h1>"); ?>
<p>
<?php permalink_anchor(); ?>
<strong><?php the_title(); ?></strong> (category: <strong><?php the_category() ?></strong>)<br />
<?php the_content(); ?><?php link_pages("<br />Pages: ","<br />","number") ?>
<br />
<em>posted by <strong><?php the_author() ?></strong> @ <a href="<?php permalink_link() ?>"><?php the_time() ?></a></em>
<br />
<a href="<?php comments_link() ?>"><?php comments_number("no comments", "1 comment", "% comments") ?></a>
</p>
<?php include ("b2comments.php"); ?>
<!-- // this is just the end of the motor - don't touch that line either -->
<?php } ?>
</div>
</body>
</html> |
|
Back to top |
|
 |
joan
Joined: 22 Dec 2003 Posts: 9
|
Posted: Fri Dec 26, 2003 6:09 pm Post subject: |
|
|
Fixed it! |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot 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
|