problème php avec nuked clan

problème php avec nuked clan - PHP - Programmation

Marsh Posté le 07-03-2007 à 19:56:20    

Bonjour tout le monde!
 
Voila j'ai un petit site en php powered by nuked clan (et oui j'y connait rien en php :) ) et tant que je ne me suis pas logger sur le site sa m'affiche ceci : "Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource /mnt/150/sda/7/9/eco50/themes/Mx_Skyed/blocks/last_post.php on line 12"
 
Sa marchais très bien jusqu'a maintenant, je n'ai pourtant rien modifier dans le last_post.php.
 
voici le last_post.php:
"<table width="274px" border="0" cellspacing="0" cellpadding="0">
 <tr><td width="274px" height="106px" valign="top"><div class="bu"><?php
 
  $niveau = ($user) ? $user[1] : 0;
 
  $sql_forums = mysql_query ("SELECT id FROM $nuked[prefix]_forums WHERE niveau <= $niveau" );
  while (list ($id) = mysql_fetch_array ($sql_forums)) {
   $where .= (empty ($where)) ? "forum_id = '$id'" : " || forum_id = '$id'";
  }
 
  $sql_threads = mysql_query ("SELECT id,titre,forum_id FROM $nuked[prefix]_forums_threads WHERE $where ORDER BY last_post DESC LIMIT 0,5" );
  while (list ($id,$titre,$fid) = mysql_fetch_array ($sql_threads)) {
 
   $titre = (strlen($titre) > 37) ? substr ($titre, 0,37) . '...' : $titre;
 
   echo '<div style="padding-bottom:2px">
    » <a href="index.php?file=Forum&page=viewtopic&forum_id=' . $fid . '&thread_id=' . $id . '">' . $titre . '</a>
   </div>';
   
  }
 
 ?></div></td></tr>
 <tr><td width="274px" height="21px">
  <img src="themes/Mx_Skyed/images/dmb.jpg" border="0" usemap="#lp" style="display:block" />
 </td></tr>
</table>"
 
Merci d'avance  ;)

Reply

Marsh Posté le 07-03-2007 à 19:56:20   

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed