I've got pagination errors in a phpBB board. Some forums are showing "page 1
of 0". Previous enquiries both here and at the phpBB forum have given me
half-answers, the latest of which contained this advice:
For each forum in phpbb_forums:
-) Get the number of posts that belong to a forum from phpbb_posts
select count(*) as count from phpbb_posts where forum_id=$forum _id
update phpbb_forums set forum_posts=$co unt where forum_id=$forum _id
-) Get the number of topics that belong to a forum from phpbb_topics
select count(*) as count from phpbb_topics where forum_id=$forum _id
update phpbb_forums set forum_posts=$co unt where forum_id=$forum _id
I understand that I have to enter some of this code into phpMyAdmin to
correct the error in the MySQL database - but I don't understand how! I've
tried copying and pasting the uncommented lines into the "queries" box in
phpMyAdmin, but I get syntax error messages back which I can't fathom. (I'm
not even sure whether I'm entering them into the right place.)
I'm running:
phpBB 2.0.6
phpMyAdmin 2.5.4
My ISP is running:
MySQL 4.0.15a
php 4.3.2
If anyone can provide an "idiot's guide" to correcting this problem I'd be
most grateful. I've been trying since the middle of December to fix it!
Thanks in advance
of 0". Previous enquiries both here and at the phpBB forum have given me
half-answers, the latest of which contained this advice:
For each forum in phpbb_forums:
-) Get the number of posts that belong to a forum from phpbb_posts
select count(*) as count from phpbb_posts where forum_id=$forum _id
update phpbb_forums set forum_posts=$co unt where forum_id=$forum _id
-) Get the number of topics that belong to a forum from phpbb_topics
select count(*) as count from phpbb_topics where forum_id=$forum _id
update phpbb_forums set forum_posts=$co unt where forum_id=$forum _id
I understand that I have to enter some of this code into phpMyAdmin to
correct the error in the MySQL database - but I don't understand how! I've
tried copying and pasting the uncommented lines into the "queries" box in
phpMyAdmin, but I get syntax error messages back which I can't fathom. (I'm
not even sure whether I'm entering them into the right place.)
I'm running:
phpBB 2.0.6
phpMyAdmin 2.5.4
My ISP is running:
MySQL 4.0.15a
php 4.3.2
If anyone can provide an "idiot's guide" to correcting this problem I'd be
most grateful. I've been trying since the middle of December to fix it!
Thanks in advance
Comment