sCaRL
Joined: 29 Aug 2004 Posts: 1
|
Posted: Sun Aug 29, 2004 1:20 pm Post subject: the same old msql error |
|
|
i got this error
Quote: | Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/httpd/vhosts/winterwish.fivio.com/web_users/solids/index.php on line 43 |
and in line 43 of my index.php is
Quote: | <!-- // b2 loop start -->
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?> |
i read on another topic that i'm supposed to change this part in blogheaderphp
Quote: | if ((empty($cat)) || ($cat == 'all') || ($cat == '0')) { |
i have change it and nothing seems to work. i've check all the same topic as mine and the problem seems to be in this paragraph
Quote: | <!-- // b2 loop start -->
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?> |
help me will ya
Quote: | <html>
<head>
<title>Real Emotion version: 1</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body bgcolor="#000000" leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 style="padding-left:10px;padding-top:10px;">
<table width=780 border=0 cellpadding=0 cellspacing=0 align="center">
<tr>
<td colspan=2>
<img src="images/image_01.jpg" width=242 height=80></td>
<td>
<img src="images/image_02.jpg" width=538 height=80></td>
</tr>
<tr>
<td colspan=2>
<img src="images/image_03.jpg" width=242 height=81></td>
<td>
<img src="images/title.jpg" width=538 height=81></td>
</tr>
<tr>
<td colspan=2>
<img src="images/image_05.jpg" width=242 height=80></td>
<td>
<img src="images/image_06.jpg" width=538 height=80></td>
</tr>
<tr>
<td>
<img src="images/image_07.jpg" width=172 height=51></td>
<td colspan=2>
<img src="images/clear.jpg" width=608 height=51></td>
</tr>
<tr>
<td background="images/image_09.jpg" width=172 valign="top">
<!--START OF NAVIGATION-->
<iframe src="menu.html" width="150" height="350" frameborder=0 framespacing=0></iframe>
<!--END OF NAVIGATION-->
</td>
<td colspan=2 background="images/image_10.jpg" width=605 valign="top" style="padding-left:1px;padding-right:1px;">
<!--START OF CONTENT-->
<!-- // 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 } ?>
<!--END OF CONTENT-->
</td>
</tr>
<tr>
<td>
<img src="images/image_11.jpg" width=172 height=23 border=0 usemap="#image_11_Map"></td>
<td colspan=2 background="images/image_12.jpg" width=608 height=23 align="center">
<b>Site Name © Your Name :: Designed by <a href="http://aethereality.net/" target="_blank">Aethereality.net</a></b></td>
</tr>
<tr>
<td>
<img src="images/spacer.gif" width=172 height=1></td>
<td>
<img src="images/spacer.gif" width=70 height=1></td>
<td>
<img src="images/spacer.gif" width=538 height=1></td>
</tr>
</table>
<map name="image_11_Map">
<area shape="rect" alt="Designed by Aethereality.net" coords="9,6,162,17" href="http://aethereality.net" target="_blank">
</map>
</body>
</html> |
|
|