IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

EDI, CMS, Outils, Scripts et API PHP Discussion :

Php myadmin probleme


Sujet :

EDI, CMS, Outils, Scripts et API PHP

  1. #21
    Membre averti
    Profil pro
    Inscrit en
    Juin 2009
    Messages
    54
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2009
    Messages : 54
    Par défaut rep
    Ok sa va déja mieu la.
    Alors ce que j'ai:
    TEST (14)
    TEST (13)
    TEST (12)
    TEST (11)
    TEST (10)
    TEST (9)
    TEST (8)
    TEST (7)
    TEST (6)
    TEST (5)
    TEST (4)
    TEST (3)
    TEST (2)
    TEST (1)


    TEST étant le nom de la rubrique.
    Il reste deux choses à modifier:
    En tout dans ma table article il y a 24 articles.
    Donc il ne devrait s'afficher seulement TEST(14)

    D'autre part lorsque que l'on clique sur la rubrique TEST, il devrait apparaitre le titre des 14 articles.

    Je sais que ce n'est pas facile mais bon
    Je te remercie encore pour ton aide

  2. #22
    Rédacteur
    Avatar de RideKick
    Homme Profil pro
    Directeur technique
    Inscrit en
    Septembre 2006
    Messages
    5 914
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Directeur technique
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Septembre 2006
    Messages : 5 914
    Par défaut
    Citation Envoyé par said06000 Voir le message
    TEST étant le nom de la rubrique.
    Il reste deux choses à modifier:
    En tout dans ma table article il y a 24 articles.
    Donc il ne devrait s'afficher seulement TEST(14)
    J'imagine que tu voulais dire 14 ?

    Citation Envoyé par said06000 Voir le message
    D'autre part lorsque que l'on clique sur la rubrique TEST, il devrait apparaitre le titre des 14 articles.

    Je sais que ce n'est pas facile mais bon
    Je te remercie encore pour ton aide
    Je comprends pas trop la philosophie la ...si on regarde la premiere requete tu selectionne les articles et leur rubrique , puis a l'interieur tu reselectionne l'article .....

    Pourquoi ne pas selectionner les rubriques (et au passage le nombre d'article dans celle ci) et les afficher et quand on clique sur la rubrique , afficher la liste des articles ?

    Dans ce cas la tu devrais avoir 2 pages , une qui liste les rubriques , une qui liste les articles (tu peux le faire dans une mais le code se complique)
    Pas de questions techniques en MP please

    Mon site perso

    Mon profil Viadeo

  3. #23
    Membre averti
    Profil pro
    Inscrit en
    Juin 2009
    Messages
    54
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2009
    Messages : 54
    Par défaut
    Non bien 24 mais c'est normal car dans les archives, seuls les plus anciens articles doivent aparaitre. Donc pas les 10 + récents..

    Oui voila c'est exactement sa que je souhaite faire.
    selectionner les rubriques (et au passage le nombre d'article dans celle ci) et les afficher et quand on clique sur la rubrique , on affiche la liste des articles.

  4. #24
    Rédacteur
    Avatar de RideKick
    Homme Profil pro
    Directeur technique
    Inscrit en
    Septembre 2006
    Messages
    5 914
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Directeur technique
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Septembre 2006
    Messages : 5 914
    Par défaut
    Normalement c'est presque ça car si on regarde les lignes suivante :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    while($ligne = mysql_fetch_array($resart)) 
    		{
    			$numart=$ligne['numart'];
    			$article=$ligne['titreart'];
    			echo ('
    					<li><a href="'.$url.$numart.'">'.$article.'</a></li>');
    		}
    tu as apparement un lein vers une page externe et le numéro d'article...

    Maintenant reste a savoir si $url contient la bonne valeur , tu peux afficher ta page , puis faire "voir le code source" et le montrer stp ?
    Pas de questions techniques en MP please

    Mon site perso

    Mon profil Viadeo

  5. #25
    Membre averti
    Profil pro
    Inscrit en
    Juin 2009
    Messages
    54
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2009
    Messages : 54
    Par défaut rep
    Ok no soucy:

    Code html : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    <!DOCTYPE html PUBLIC "-//W3C//DTD
     XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    	<html xmlns="http://www.w3.org/1999/xhtml" lang ="fr" xml:lang="fr">
    	<head>
    		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
    		<meta name="author" content="">
    		<meta name="keywords" content="">
    		<link href="../Css/style-blog.css" rel="stylesheet" type="text/css" />
    		<title></title>
    		<script type="text/javascript" src="ajax.js"></script>
    		<script type="text/javascript" src="fonctions.js"></script>
    	    <style type="text/css">
    <!--
    .Style1 {color: #FFFFFF}
    -->
            </style>
    	</head> 
    	<body>	
    		<table width="1060" height="978" border="0" align="center" cellpadding="0" cellspacing="0" id="Tableau_01">
    	<tr>
    		<td colspan="5">
    			<img src="../images/galy-blog.jpg" alt="" width="1060" height="277" border="0" usemap="#Map"></td>
    	</tr>
    	<tr valign="top">
    		<td width="12" height="669" background="../images/bdg.jpg">
    			<img src="../images/bdg.jpg" width="12" height="212" alt=""></td>
    		<td width="12">
     
    	    <table width="100%" height="118"  border="0">
                <tr>
                  <th height="10" scope="col"></th>
                </tr>
              </table>
          </td><td width="751">
     
    		  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <th height="20" scope="col"></th>
                </tr>
              </table>
     
     
    		  <table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
    			  <th width="749" height="24" background="../images/badeau-titre.gif" scope="col"><div align="center" class="titre"><A href="index.php?r=nv" class="titre2"  style="text-decoration:none" ><strong>[Créer un nouvel article]</strong></a></div></th>
                  <th width="1" background="../images/fond2-badeau-titre.gif" scope="col"></th>
                </tr>
              </table>
    		  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <th height="20" scope="col">
                    <p>&nbsp;              </p></th>
                </tr>
              </table>		  
    		  <table width="749" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <th width="140" height="24" background="../images/fond-badeau-titre.gif" scope="col"><div align="right"><span class="dates">Le Mercredi 17 Juin 2009</span></div></th>
                  <th width="390" background="../images/badeau-titre.gif" scope="col"><div align="right" class="titre2"> ff</div></th>
                  <th width="5" background="../images/fond2-badeau-titre.gif" scope="col"></th>
                </tr>
              </table>
    		  <table width="749" border="0" align="center" cellpadding="10" cellspacing="0">
                <tr>
                  <th scope="col"><p><p>f</p></p></th>
                </tr>
              </table>
    		  <table width="749" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <th width="269" height="24" background="../images/fond-badeau-titre.gif" scope="col"><div align="right" class="titre2">
                    <div align="center"><a href="index.php?modifier=24" class="titre2" style="text-decoration:none" >[Modifier larticle]</a></div>
                  </div></th>
                  <th width="270" background="../images/badeau-titre.gif" scope="col"><div align="right" class="titre2">
                    <div align="center"><a href="index.php?supprimer=24" class="titre2"  style="text-decoration:none" >[Supprimer article]</a></div>
                  </div></th>
                  <th width="1" background="../images/fond2-badeau-titre.gif" scope="col"></th>
                </tr>
              </table><br /><table width="749" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <th width="140" height="24" background="../images/fond-badeau-titre.gif" scope="col"><div align="right"><span class="dates">Le Mercredi 17 Juin 2009</span></div></th>
                  <th width="390" background="../images/badeau-titre.gif" scope="col"><div align="right" class="titre2">ds gf</div></th>
                  <th width="5" background="../images/fond2-badeau-titre.gif" scope="col"></th>
                </tr>
              </table>
    		  <table width="749" border="0" align="center" cellpadding="10" cellspacing="0">
                <tr>
                  <th scope="col"><p><p>&nbsp;fgfd</p></p></th>
                </tr>
              </table>
    		  <table width="749" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <th width="269" height="24" background="../images/fond-badeau-titre.gif" scope="col"><div align="right" class="titre2">
                    <div align="center"><a href="index.php?modifier=23" class="titre2" style="text-decoration:none" >[Modifier larticle]</a></div>
                  </div></th>
                  <th width="270" background="../images/badeau-titre.gif" scope="col"><div align="right" class="titre2">
                    <div align="center"><a href="index.php?supprimer=23" class="titre2"  style="text-decoration:none" >[Supprimer article]</a></div>
                  </div></th>
                  <th width="1" background="../images/fond2-badeau-titre.gif" scope="col"></th>
                </tr>
              </table><br /><table width="749" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <th width="140" height="24" background="../images/fond-badeau-titre.gif" scope="col"><div align="right"><span class="dates">Le Mercredi 17 Juin 2009</span></div></th>
                  <th width="390" background="../images/badeau-titre.gif" scope="col"><div align="right" class="titre2"> d gfd</div></th>
                  <th width="5" background="../images/fond2-badeau-titre.gif" scope="col"></th>
                </tr>
              </table>
    		  <table width="749" border="0" align="center" cellpadding="10" cellspacing="0">
                <tr>
                  <th scope="col"><p><p>&nbsp;fdg f</p></p></th>
                </tr>
              </table>
    		  <table width="749" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <th width="269" height="24" background="../images/fond-badeau-titre.gif" scope="col"><div align="right" class="titre2">
                    <div align="center"><a href="index.php?modifier=22" class="titre2" style="text-decoration:none" >[Modifier larticle]</a></div>
                  </div></th>
                  <th width="270" background="../images/badeau-titre.gif" scope="col"><div align="right" class="titre2">
                    <div align="center"><a href="index.php?supprimer=22" class="titre2"  style="text-decoration:none" >[Supprimer article]</a></div>
                  </div></th>
                  <th width="1" background="../images/fond2-badeau-titre.gif" scope="col"></th>
                </tr>
              </table><br /><table width="749" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <th width="140" height="24" background="../images/fond-badeau-titre.gif" scope="col"><div align="right"><span class="dates">Le Mercredi 17 Juin 2009</span></div></th>
                  <th width="390" background="../images/badeau-titre.gif" scope="col"><div align="right" class="titre2">trggr</div></th>
                  <th width="5" background="../images/fond2-badeau-titre.gif" scope="col"></th>
                </tr>
              </table>
    		  <table width="749" border="0" align="center" cellpadding="10" cellspacing="0">
                <tr>
                  <th scope="col"><p><p>trgrt</p></p></th>
                </tr>
              </table>
    		  <table width="749" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <th width="269" height="24" background="../images/fond-badeau-titre.gif" scope="col"><div align="right" class="titre2">
                    <div align="center"><a href="index.php?modifier=21" class="titre2" style="text-decoration:none" >[Modifier larticle]</a></div>
                  </div></th>
                  <th width="270" background="../images/badeau-titre.gif" scope="col"><div align="right" class="titre2">
                    <div align="center"><a href="index.php?supprimer=21" class="titre2"  style="text-decoration:none" >[Supprimer article]</a></div>
                  </div></th>
                  <th width="1" background="../images/fond2-badeau-titre.gif" scope="col"></th>
                </tr>
              </table><br /><table width="749" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <th width="140" height="24" background="../images/fond-badeau-titre.gif" scope="col"><div align="right"><span class="dates">Le Mercredi 17 Juin 2009</span></div></th>
                  <th width="390" background="../images/badeau-titre.gif" scope="col"><div align="right" class="titre2">trg</div></th>
                  <th width="5" background="../images/fond2-badeau-titre.gif" scope="col"></th>
                </tr>
              </table>
    		  <table width="749" border="0" align="center" cellpadding="10" cellspacing="0">
                <tr>
                  <th scope="col"><p><p>treg</p></p></th>
                </tr>
              </table>
    		  <table width="749" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <th width="269" height="24" background="../images/fond-badeau-titre.gif" scope="col"><div align="right" class="titre2">
                    <div align="center"><a href="index.php?modifier=20" class="titre2" style="text-decoration:none" >[Modifier larticle]</a></div>
                  </div></th>
                  <th width="270" background="../images/badeau-titre.gif" scope="col"><div align="right" class="titre2">
                    <div align="center"><a href="index.php?supprimer=20" class="titre2"  style="text-decoration:none" >[Supprimer article]</a></div>
                  </div></th>
                  <th width="1" background="../images/fond2-badeau-titre.gif" scope="col"></th>
                </tr>
              </table><br /> 
     
     
     
     
    		<br>
    	  </td>
    		<td width="271"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <th height="20" scope="col"></th>
              </tr>
            </table>
    		  <table width="247" height="187" border="0" align="center" cellpadding="0" cellspacing="0" id="Tableau_01">
                <tr>
                  <td height="25" colspan="4" background="../images/th-haut.jpg"><div align="center"><span class="titre">Articles</span></div></td>
                </tr>
                <tr>
                  <td width="9" background="../images/th-gauche.jpg">&nbsp;</td>
                  <td width="228"><div align="left">
                      <UL>
                        <LI><A href="index.php?page=1">Articles r&eacute;cents </A>
                        <LI><A href="index.php?page=2">Tous les articles</A>                
                        <LI><A href="index.php?page=3">Liste des articles</A>
                        <LI><A href="index.php?page=4">Cr&eacute;er un nouvel article </A>
                      </UL>
                  </div></td>
                  <td width="9" background="../images/th-droite.jpg">&nbsp;</td>
                  <td><img src="../images/tableau-titres_05.jpg" width="1" height="146" alt=""></td>
                </tr>
                <tr>
                  <td colspan="4"><img src="../images/th-bas.jpg" width="247" height="16" alt=""></td>
                </tr>
              </table>
    		  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <th height="20" scope="col"></th>
                </tr>
              </table>
    		  <table width="247" height="187" border="0" align="center" cellpadding="0" cellspacing="0" id="Tableau_01">
                <tr>
                  <td height="25" colspan="4" background="../images/th-haut.jpg"><div align="center"><span class="titre">Archives</span></div></td>
                </tr>
                <tr>
                  <td width="9" background="../images/th-gauche.jpg">&nbsp;</td>
                  <td width="228"><div align="left"><span class="element_menu">
                    <ul style="margin-left:0px; padding-left:10px; list-style-type:square;"><a onclick="javascript: affichebloc('articles14')" style="cursor: pointer;">TEST</a> (14)<ul id="articles14" style="display: none"></ul></ul><ul style="margin-left:0px; padding-left:10px; list-style-type:square;"><a onclick="javascript: affichebloc('articles13')" style="cursor: pointer;">TEST</a> (13)<ul id="articles13" style="display: none"></ul></ul><ul style="margin-left:0px; padding-left:10px; list-style-type:square;"><a onclick="javascript: affichebloc('articles12')" style="cursor: pointer;">TEST</a> (12)<ul id="articles12" style="display: none"></ul></ul><ul style="margin-left:0px; padding-left:10px; list-style-type:square;"><a onclick="javascript: affichebloc('articles11')" style="cursor: pointer;">TEST</a> (11)<ul id="articles11" style="display: none"></ul></ul><ul style="margin-left:0px; padding-left:10px; list-style-type:square;"><a onclick="javascript: affichebloc('articles10')" style="cursor: pointer;">TEST</a> (10)<ul id="articles10" style="display: none"></ul></ul><ul style="margin-left:0px; padding-left:10px; list-style-type:square;"><a onclick="javascript: affichebloc('articles9')" style="cursor: pointer;">TEST</a> (9)<ul id="articles9" style="display: none"></ul></ul><ul style="margin-left:0px; padding-left:10px; list-style-type:square;"><a onclick="javascript: affichebloc('articles8')" style="cursor: pointer;">TEST</a> (8)<ul id="articles8" style="display: none"></ul></ul><ul style="margin-left:0px; padding-left:10px; list-style-type:square;"><a onclick="javascript: affichebloc('articles7')" style="cursor: pointer;">TEST</a> (7)<ul id="articles7" style="display: none"></ul></ul><ul style="margin-left:0px; padding-left:10px; list-style-type:square;"><a onclick="javascript: affichebloc('articles6')" style="cursor: pointer;">TEST</a> (6)<ul id="articles6" style="display: none"></ul></ul><ul style="margin-left:0px; padding-left:10px; list-style-type:square;"><a onclick="javascript: affichebloc('articles5')" style="cursor: pointer;">TEST</a> (5)<ul id="articles5" style="display: none"></ul></ul><ul style="margin-left:0px; padding-left:10px; list-style-type:square;"><a onclick="javascript: affichebloc('articles4')" style="cursor: pointer;">TEST</a> (4)<ul id="articles4" style="display: none"></ul></ul><ul style="margin-left:0px; padding-left:10px; list-style-type:square;"><a onclick="javascript: affichebloc('articles3')" style="cursor: pointer;">TEST</a> (3)<ul id="articles3" style="display: none"></ul></ul><ul style="margin-left:0px; padding-left:10px; list-style-type:square;"><a onclick="javascript: affichebloc('articles2')" style="cursor: pointer;">TEST</a> (2)<ul id="articles2" style="display: none"></ul></ul><ul style="margin-left:0px; padding-left:10px; list-style-type:square;"><a onclick="javascript: affichebloc('articles1')" style="cursor: pointer;">TEST</a> (1)<ul id="articles1" style="display: none"></ul></ul>              </span></div></td>
                  <td width="9" background="../images/th-droite.jpg">&nbsp;</td>
                  <td><img src="../images/tableau-titres_05.jpg" width="1" height="146" alt=""></td>
                </tr>
                <tr>
                  <td colspan="4"><img src="../images/th-bas.jpg" width="247" height="16" alt=""></td>
                </tr>
              </table>
    		  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <th height="20" scope="col"></th>
                </tr>
              </table>
    		  <table width="247" height="187" border="0" align="center" cellpadding="0" cellspacing="0" id="Tableau_01">
                <tr>
                  <td height="25" colspan="4" background="../images/th-haut.jpg"><div align="center"><span class="titre">Rubriques</span></div></td>
                </tr>
                <tr>
                  <td width="9" background="../images/th-gauche.jpg">&nbsp;</td>
                  <td width="228"><div align="left">
                      <UL>
                        <LI><A href="index.php?page=6">Gestion des  rubriques</A><!-- <LI><A href="admin.php?page=7">Modifier les rubriques </A>
                        <LI><A href="admin.php?page=8">Supprimer les rubriques </A> -->
                    </UL>
                  </div></td>
                  <td width="9" background="../images/th-droite.jpg">&nbsp;</td>
                  <td><img src="images/tableau-titres_05.jpg" width="1" height="146" alt=""></td>
                </tr>
                <tr>
                  <td height="16" colspan="4"><img src="../images/th-bas.jpg" width="247" height="16" alt="" /></td>
                </tr>
              </table>
    		  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <th height="20" scope="col"></th>
                </tr>
              </table>
    		  <table width="247" height="187" border="0" align="center" cellpadding="0" cellspacing="0" id="Tableau_01">
                <tr>
                  <td height="25" colspan="4" background="../images/th-haut.jpg"><div align="center"><span class="titre">Questions</span></div></td>
                </tr>
                <tr>
                  <td width="9" background="../images/th-gauche.jpg">&nbsp;</td>
                  <td width="228"><div align="left">
                      <UL>
                        <LI><A href="index.php?page=9">Questions r&eacute;centes</A>
                        <LI><A href="index.php?page=10">Toutes les questions </A>
                        <LI><A href="index.php?page=11">Liste des questions </A>                      
                    </UL>
                  </div></td>
                  <td width="9" background="../images/th-droite.jpg">&nbsp;</td>
                  <td><img src="images/tableau-titres_05.jpg" width="1" height="146" alt=""></td>
                </tr>
                <tr>
                  <td colspan="4"><img src="../images/th-bas.jpg" width="247" height="16" alt="" /></td>
                </tr>
              </table>
    		   <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <th height="20" scope="col"></th>
                </tr>
              </table>
    		  <table width="247" height="187" border="0" align="center" cellpadding="0" cellspacing="0" id="Tableau_01">
                <tr>
                  <td height="25" colspan="4" background="../images/th-haut.jpg"><div align="center"><span class="titre">Liens</span></div></td>
                </tr>
                <tr>
                  <td width="9" background="../images/th-gauche.jpg">&nbsp;</td>
                  <td width="228"><div align="left">
                      <UL>
                        <LI><A href="index.php?page=13">G&eacute;rer les liens texte </A>
                        <LI><A href="index.php?page=14">G&eacute;rer les liens images</A>                    
                    </UL>
                  </div></td>
                  <td width="9" background="../images/th-droite.jpg">&nbsp;</td>
                  <td><img src="images/tableau-titres_05.jpg" width="1" height="146" alt=""></td>
                </tr>
                <tr>
                  <td colspan="4"><img src="../images/th-bas.jpg" width="247" height="16" alt="" /></td>
                </tr>
              </table>
    		  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <th height="20" scope="col"></th>
                </tr>
              </table>
    		  <table width="247" height="187" border="0" align="center" cellpadding="0" cellspacing="0" id="Tableau_01">
                <tr>
                  <td height="25" colspan="4" background="../images/th-haut.jpg"><div align="center"><span class="titre">Newsletter</span></div></td>
                </tr>
                <tr>
                  <td width="9" background="../images/th-gauche.jpg">&nbsp;</td>
                  <td width="228"><div align="left">
                      <UL>
                        <LI><A href="index.php?page=16">Cr&eacute;er une newsletter</A>
                        <LI><A href="index.php?page=17">Liste des newsletter</A>                    
                    </UL>
                  </div></td>
                  <td width="9" background="../images/th-droite.jpg">&nbsp;</td>
                  <td><img src="images/tableau-titres_05.jpg" width="1" height="146" alt=""></td>
                </tr>
                <tr>
                  <td colspan="4"><img src="../images/th-bas.jpg" width="247" height="16" alt="" /></td>
                </tr>
              </table>
    	  </td>
    		<td width="14" background="../images/brd.jpg">
    			<img src="../images/brd.jpg" width="13" height="212" alt=""></td>
      </tr>
    	<tr>
    		<td colspan="5">
    			<img src="../images/br-bas.jpg" width="1060" height="32" alt=""></td>
    	</tr>
    </table>
    <!-- End ImageReady Slices -->
    <map name="Map">
    	<area shape="rect" coords="291,26,419,57" href="index.php" />
    	<area shape="rect" coords="458,27,599,57" href="index.php?page=15" />
    	<area shape="rect" coords="647,26,859,58" href="#" />
    	<area shape="rect" coords="916,24,1046,59" href="index.php?page=22"/>
    </map>
     
        </body>
    </html>

  6. #26
    Rédacteur
    Avatar de RideKick
    Homme Profil pro
    Directeur technique
    Inscrit en
    Septembre 2006
    Messages
    5 914
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Directeur technique
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Septembre 2006
    Messages : 5 914
    Par défaut
    Semblerait que cette partie du code ne fasse pas son job :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    $reqart = "SELECT numart,titreart
    					FROM archives
    					WHERE numrubrique=".$numrub.";";
    tu as des infos dans la table archives ?
    Pas de questions techniques en MP please

    Mon site perso

    Mon profil Viadeo

  7. #27
    Membre averti
    Profil pro
    Inscrit en
    Juin 2009
    Messages
    54
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2009
    Messages : 54
    Par défaut rep
    A oui je suis bete je voulais t'en parler auparavant mais j'ai oublié
    Désolé.
    Auparavant j'avais tenter de corriger avec un insert into dans la tables archives mais ce n'était pas bon.
    Pour te répondre il n'y a aucune donnée dans la tables archives.

  8. #28
    Rédacteur
    Avatar de RideKick
    Homme Profil pro
    Directeur technique
    Inscrit en
    Septembre 2006
    Messages
    5 914
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Directeur technique
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Septembre 2006
    Messages : 5 914
    Par défaut
    remplace archives par article dans la requête pour dépanner
    Pas de questions techniques en MP please

    Mon site perso

    Mon profil Viadeo

  9. #29
    Membre averti
    Profil pro
    Inscrit en
    Juin 2009
    Messages
    54
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2009
    Messages : 54
    Par défaut rep
    Ok ok sa avance
    Maintenant voila ce qui est affiché:
    TEST (14)
    Bis testé
    fezfeé
    yjyu
    hg,j
    jh,jh
    hg,jh
    hj,h
    h,jhg
    h,jh
    ,hjg,jhg
    ytut
    f ffd
    fdvfd
    dfvfd
    dfvd
    fdvd
    vfdv
    vgtr
    trg
    trg
    trggr
    d gfd
    ds gf
    ff



    J'ai écrit n'importe quoi pour le titre des articles ne t'inquietes pas lool

    Le probleme c'est qu'il ne faut pas afficher les 24 articles mais seulement les 10 plus anciens.

  10. #30
    Rédacteur
    Avatar de RideKick
    Homme Profil pro
    Directeur technique
    Inscrit en
    Septembre 2006
    Messages
    5 914
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Directeur technique
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Septembre 2006
    Messages : 5 914
    Par défaut
    Il y'a des dates dans ta table articles ? genre dates d'insertion ?
    Pas de questions techniques en MP please

    Mon site perso

    Mon profil Viadeo

  11. #31
    Membre averti
    Profil pro
    Inscrit en
    Juin 2009
    Messages
    54
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2009
    Messages : 54
    Par défaut rep
    Oui j'ai un champ DATEART

  12. #32
    Rédacteur
    Avatar de RideKick
    Homme Profil pro
    Directeur technique
    Inscrit en
    Septembre 2006
    Messages
    5 914
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Directeur technique
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Septembre 2006
    Messages : 5 914
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    $reqart = "SELECT numart,titreart
    	       FROM archives
                   WHERE numrubrique=".$numrub."
                   ORDER BY DATEART DESC
                   LIMIT 0,10";

    Je sais jamais si c'est DESC ou ASC .....
    Pas de questions techniques en MP please

    Mon site perso

    Mon profil Viadeo

  13. #33
    Membre averti
    Profil pro
    Inscrit en
    Juin 2009
    Messages
    54
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2009
    Messages : 54
    Par défaut rep
    Ok parfait, il ne reste plus qu'a afficher la rubrique qu'une seul fois
    Car la on a :
    TEST (14)

    TEST (13)

    TEST (12)

    TEST (11)

    TEST (10)

    TEST (9)

    TEST (8)

    TEST (7)

    TEST (6)


    TEST (5)

    TEST (4)

    TEST (3)

    TEST (2)

    TEST (1)


    ET il faudrait :

    TEST (14)


    Au faite Desc c'est décroissant

  14. #34
    Rédacteur
    Avatar de RideKick
    Homme Profil pro
    Directeur technique
    Inscrit en
    Septembre 2006
    Messages
    5 914
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Directeur technique
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Septembre 2006
    Messages : 5 914
    Par défaut
    Et en changeant la premiere requete :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    $rep = "select article.numart as 'numart',article.titreart as 'titreart',rubrique.librubrique as 'librubrique',
    DISTINCT(article.numrubrique as 'numrubrique')
    			From article join rubrique 
    			where rubrique.numrubrique = article.numrubrique 
    			order by article.dateart
    			desc
    			LIMIT 10,30;";
    Pas de questions techniques en MP please

    Mon site perso

    Mon profil Viadeo

  15. #35
    Membre averti
    Profil pro
    Inscrit en
    Juin 2009
    Messages
    54
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2009
    Messages : 54
    Par défaut rep
    Dommage mais c'est pas sa enfin sa renvoit une erreur:

    L'insertion a echouée car You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DISTINCT(article.numrubrique as 'numrubrique') From article join rubrique ' at line 2.

  16. #36
    Rédacteur
    Avatar de RideKick
    Homme Profil pro
    Directeur technique
    Inscrit en
    Septembre 2006
    Messages
    5 914
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Directeur technique
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Septembre 2006
    Messages : 5 914
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    $rep = "select article.numart as 'numart',article.titreart as 'titreart',rubrique.librubrique as 'librubrique',
    DISTINCT article.numrubrique as 'numrubrique'
    			From article join rubrique 
    			where rubrique.numrubrique = article.numrubrique 
    			order by article.dateart
    			desc
    			LIMIT 10,30";
    ?
    Pas de questions techniques en MP please

    Mon site perso

    Mon profil Viadeo

  17. #37
    Membre averti
    Profil pro
    Inscrit en
    Juin 2009
    Messages
    54
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2009
    Messages : 54
    Par défaut rep
    Exactement la meme erreur

  18. #38
    Rédacteur
    Avatar de RideKick
    Homme Profil pro
    Directeur technique
    Inscrit en
    Septembre 2006
    Messages
    5 914
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Directeur technique
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Septembre 2006
    Messages : 5 914
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    $rep = "select DISTINCT article.numrubrique as 'numrubrique',
    article.numart as 'numart',
    article.titreart as 'titreart',
    rubrique.librubrique as 'librubrique'
    			From article join rubrique 
    			where rubrique.numrubrique = article.numrubrique 
    			order by article.dateart
    			desc
    			LIMIT 10,30";
    Dernier essai après on oublie la solution distinct
    Pas de questions techniques en MP please

    Mon site perso

    Mon profil Viadeo

  19. #39
    Membre averti
    Profil pro
    Inscrit en
    Juin 2009
    Messages
    54
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2009
    Messages : 54
    Par défaut rep
    Looool

    Cette fois sa marche mais j'ai toujours:
    TEST (14)

    TEST (13)

    TEST (12)

    TEST (11)

    TEST (10)

    TEST (9)

    TEST (8)

    TEST (7)

    TEST (6)


    TEST (5)

    TEST (4)

    TEST (3)

    TEST (2)

    TEST (1)

  20. #40
    Rédacteur
    Avatar de RideKick
    Homme Profil pro
    Directeur technique
    Inscrit en
    Septembre 2006
    Messages
    5 914
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Directeur technique
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Septembre 2006
    Messages : 5 914
    Par défaut
    On peut changer le limit mais bon , suis pas sur que ce soit la meilleure solution ....

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    $rep = "select DISTINCT article.numrubrique as 'numrubrique',
    article.numart as 'numart',
    article.titreart as 'titreart',
    rubrique.librubrique as 'librubrique'
    			From article join rubrique 
    			where rubrique.numrubrique = article.numrubrique 
    			order by article.dateart
    			desc
    			LIMIT 10,11";
    Pas de questions techniques en MP please

    Mon site perso

    Mon profil Viadeo

Discussions similaires

  1. [phpMyAdmin] probleme configuration php myadmin
    Par encours dans le forum EDI, CMS, Outils, Scripts et API
    Réponses: 0
    Dernier message: 31/01/2012, 17h20
  2. Probleme d'exportation et d'importation sous PHP/Myadmin
    Par Kallamou dans le forum Administration
    Réponses: 1
    Dernier message: 11/02/2011, 23h41
  3. Erreur sous PHP MyAdmin (PMA database?)
    Par Matlight dans le forum Installation
    Réponses: 5
    Dernier message: 28/10/2010, 20h38
  4. probleme php myadmin
    Par doodi dans le forum Linux
    Réponses: 2
    Dernier message: 13/12/2009, 07h49
  5. [FLASH MX2004] [PHP/FLASH] Probleme de LoadVar
    Par dedella_al dans le forum Flash
    Réponses: 8
    Dernier message: 16/07/2004, 19h56

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo