Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1123 connectés 

  FORUM HardWare.fr
  Programmation
  PHP

  problème php avec nuked clan

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

problème php avec nuked clan

n°1525529
eagle1613
Posté le 07-03-2007 à 19:56:20  profilanswer
 

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  ;)

mood
Publicité
Posté le 07-03-2007 à 19:56:20  profilanswer
 

n°1525539
sielfried
Posté le 07-03-2007 à 20:34:36  profilanswer
 

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  PHP

  problème php avec nuked clan

 

Sujets relatifs
SQlite + Python: Problème de "CREATE TABLE IF NOT EXISTS"problème avec l'utilisation d'un StateEdit
Probleme simple ?[C#-PDA] Problème avec le tabcontrol
probleme appendChild et IEProblème de format sur le graphique Access sous Windows XP
[Java] Problème (simple ??!) d'ArrayListproblème de compilation sous eclipse
[PHP] problème lecture / écriture dans un fichier[sql] probleme requete sql.
Plus de sujets relatifs à : problème php avec nuked clan


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR