affichage d'un menu

affichage d'un menu - PHP - Programmation

Marsh Posté le 24-06-2003 à 12:16:18    

:hello:  Je souhaite afficher un menu du type a l'aide de ma base de donnée:
 
* Processeur
* Carte mere
* Memoire
 
et J'obtient
 
*
*
*
 
J'ai essayer de déclarer en char, en text en varchar et rien ne s'affiche a l'ecran, d'ou pourrait venir l'erreur ?
 
Voici le code en php :
if ($idconnexion) {
        $requete='select * from categorie;';
        $jeuResultat=mysql_query($requete, $idconnexion) ;
 
        echo'<p>';
        while (mysql_fetch_row($jeuResultat)) {
            echo '<img border="0" src="/Images/b1.gif" width="14" height="14"><a href="javascript:afficherProduits(\''.$jeuResultat[0].'\')"><font face="arial">'.$jeuResultat[1].'</a><br>';
        }
    }
 
P.S: la variable $jeuResultat représente les catégories à afficher!
 
Merci

Reply

Marsh Posté le 24-06-2003 à 12:16:18   

Reply

Marsh Posté le 24-06-2003 à 12:17:20    

He's back \o/


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
Reply

Marsh Posté le 24-06-2003 à 12:28:16    

Taiche a écrit :

He's back \o/


[:yaisse2]  :D


---------------
from here and there -- \o__________________________________ -- la révolution de la terre, en silence
Reply

Marsh Posté le 24-06-2003 à 12:30:20    

Code :
  1. if ($idconnexion) {
  2.         $requete='select * from categorie;';
  3.         $jeuResultat=mysql_query($requete, $idconnexion) ;
  4.         echo'<p>';
  5.         while ($data=mysql_fetch_row($jeuResultat)) {
  6.             echo '<img border="0" src="/Images/b1.gif" width="14" height="14"><a href="javascript:afficherProduits(\''.$data[0].'\')"><font face="arial">'.$data[1].'</a><br>';
  7.         }
  8.     }


 
commeça .. ce sera déjà un peu mieux  ;)


---------------
from here and there -- \o__________________________________ -- la révolution de la terre, en silence
Reply

Marsh Posté le 24-06-2003 à 12:54:42    

:D merci beaucoup ça marche maintenant!Je Vais essayé de continué mon site!!  :hello:

Reply

Sujets relatifs:

Leave a Replay

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