Skip to content
Extraits de code Groupes Projets
Valider 3e764d13 rédigé par ARNO*'s avatar ARNO*
Parcourir les fichiers

Emmelage de pinceaux au precedent post. afficher_tranches_requete fonctionne a...

Emmelage de pinceaux au precedent post. afficher_tranches_requete fonctionne a nouveau (sauf erreur...)
parent 58c8aed3
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -489,9 +489,10 @@ function afficher_tranches_requete(&$query, $colspan) {
$query = trim($query);
$query_count = eregi_replace('^(SELECT)[[:space:]].*[[:space:]](FROM)[[:space:]]', '\\1 COUNT(*) \\2 ', $query);
$query_count = eregi_replace('ORDER[[:space:]]+BY.*$', '', $query);
$query_count = eregi_replace('ORDER[[:space:]]+BY.*$', '', $query_count);
list($num_rows) = spip_fetch_array(spip_query($query_count));
if (!$num_rows) return;
$nb_aff = 10;
......
......@@ -249,6 +249,8 @@ while ($row_groupes = spip_fetch_array($result_groupes)) {
echo "<div class='liste'>";
echo "<table border=0 cellspacing=0 cellpadding=3 width=\"100%\">";
echo $tranches;
$result = spip_query($query);
while ($row = spip_fetch_array($result)) {
......@@ -256,7 +258,6 @@ while ($row_groupes = spip_fetch_array($result_groupes)) {
$id_mot = $row['id_mot'];
$titre_mot = $row['titre'];
$multi = $row['multi'];
if ($connect_statut == "0minirezo")
$aff_articles="prepa,prop,publie,refuse";
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter