|
|
|
|
$var= mysql_fetch_array($cherche,MYSQL_NUM);
while($var= mysql_fetch_array($cherche,MYSQL_NUM)) {}
L'imagination est plus importante que la connaissance. Albert Einstein
Configuration: Windows XP Firefox 2.0
comme on peut supposer que tu as fait ta requette + ta connexion sql
voila comment on fait:
$requettee = 'SELECT * FROM ta_table ' . $premierMessageAafficher . ', ' . $nombreDeMessagesParPage;
$reponse = mysql_query($requettee)or die(mysql_error());
while ($donnees = mysql_fetch_array($reponse))
{
echo '<center><table style="border:1px solid; border-color:blue; background:#9999FF;" width="75%"><tr><td style="border:1px solid;"><p><b>' . $donnees['psdo'] . ' a écrit :</td></b></tr><tr><td>' . $donnees['msg'] . '<br /> Note: ' .$donnees['nte'] .'/10 </td></tr></table> </p></center>';
}
Ceci étant un exemple MERCI BIEN!! En cas de problème me contacter par MP
|
suite et fin
il fallait utiliser array_push pour faire un grand tableau ou array_unshift pour faire un tableau de tableau et le tout donne $chercheServ = mysql_query("SELECT * FROM folder",$link);
$ServArray = array ();
while($servicetab= mysql_fetch_array($chercheServ,MYSQL_NUM)) {
$ServNom = $servicetab[1];
$ServId = $servicetab[0];
array_unshift ($ServArray, $servicetab);
// array_push($ServArray,$ServNom);
}
print_r($ServArray);
$i = 10-1;
echo "<br />test =>".$ServArray[$i][1];
Voilà ... pour info ..:::P@ ... a tras, a PoOf ou a chou :::.. L'imagination est plus importante que la connaissance. Albert Einstein
|