cs_tgr74
Messages postés23Date d'inscriptionjeudi 22 mars 2007StatutMembreDernière intervention26 août 2009
-
24 août 2009 à 20:11
cs_tgr74
Messages postés23Date d'inscriptionjeudi 22 mars 2007StatutMembreDernière intervention26 août 2009
-
26 août 2009 à 10:03
Salut à tous
j'ai besoin d'aide pour l'élaboration d'une news défilante.
Après recherche sur le site, je suis tombé sur ce script : news.php
43 ';
47
48 include('connec.php');
49 $req1_exe = mysql_query( 'select * from news_abs order by id desc' );
50 for ($i=0;($tab1=mysql_fetch_array($req1_exe)) && ($i!=5); $i++)
51 {
52 echo ' '.stripslashes($tab1[1]).'
53 '.stripslashes($tab1[2]).'
';
54 }
55 echo '
';
56 ?>
57
58 <script type ="text/javascript">
59 var deltaH1 = -1;
60 var defileH_1 = new Defilant("defileH1", 130, 0, 130, deltaH1,"vertical");
61 setInterval("defileH_1.defile()",40);
62 </script>
Mon problème est le suivant :
j'ai cette erreur Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\Task_force\news.php on line 52
Voici la ligne 52 : for ($i=0;($tab1=mysql_fetch_array($req1_exe)) && ($i!=5); $i++)