Je veux imprimer un nombre croissant avec chaque publication. Comme chaque forum a cela.pagination et numérotation des lignes
J'utilise actuellement ceci:
$i = 0; while ($post = mysql_fetch_assoc($rs)): $i++;
permet de dire que j'imprimer 5 après par page
Voici ce qui se passe:
#1 First post
#2 2nd post
#3 3rd post
#4 4th post
#5 5th post
Then you go to page to 2
#1 6th post
#2 7th post
#3 8th post
#4 9th post
#5 10th post
Je ne veux pas, je veux garder increse numéro le plus élevé de la première page
Le sql:
SELECT u.group_id, u.username, u.title, p.poster, p.message, p.thread_id, g.g_title, g.g_user_title FROM posts AS p
INNER JOIN users AS u ON u.id = p.poster
INNER JOIN groups AS g ON g.g_id = u.group_id
WHERE p.thread_id = $id
LIMIT $startIndex, $perPage
Il ne fonctionnera pas avec la page # 1 – Kirzilla
Oui, ce sera si vous commencez à compter à 0. – tster