Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 05:39 pm EST
Geeklog Forums
Logic Error in WhatsNew Block
Status: offline
ByteEnable
Forum User
Full Member
Registered: 10/20/03
Posts: 138
Hi,
I found that the COM_whatsNew block has a logic error in the comments section
for( $x = 1; $x <= $nrows; $x++ )
So, if you have a 1000 unique comments, its going to list a 1000 comments.
Byte
I found that the COM_whatsNew block has a logic error in the comments section
Text Formatted Code
for( $x = 1; $x <= $nrows; $x++ )
So, if you have a 1000 unique comments, its going to list a 1000 comments.
Byte
7
10
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by ByteEnable: So, if you have a 1000 unique comments, its going to list a 1000 comments.
Nope. You must have missed the
LIMIT 15
in the SQL request that actually collects the comments.bye, Dirk
9
9
Quote
Status: offline
ByteEnable
Forum User
Full Member
Registered: 10/20/03
Posts: 138
Thanks! That was a big sql statement so I just breezed over it Byte
9
8
Quote
All times are EST. The time is now 05:39 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content