NewStats: 3,265,235 , 8,186,092 topics. Date: Saturday, 14 June 2025 at 01:10 AM 462u4p

6z3e3g

Why Double Post On The Front Page - Photi - Programming - Nairaland 25i43

Why Double Post On The Front Page - Photi (1461 Views)

(4)

(1) (Go Down)

uvalued(m): 7:48am On Feb 04, 2017
i just checked nairaland frontpage and i saw double post...what coukd have caused it?

Re: Why Double Post On The Front Page - Photi by Nobody: 7:52am On Feb 04, 2017
Shit happens
directonpc(m): 9:08am On Feb 04, 2017
Setting topic ID column as unique could save nl from such embarrassment. And even make promoting/updating a topic that is already on fp easier (e.g live football scores). I hope seun will consider that in the future.
ProNdubuisi: 4:22pm On Feb 06, 2017
And getting to fp, is a manual thing o, if it was an algorithm thing i would have said that, one person created two similar posts, even with topic_id as primary key it could still happen. My question is, are both posts from the same person?
ProNdubuisi: 4:28pm On Feb 06, 2017
directonpc:
Setting topic ID column as unique could save nl from such embarrassment. And even make promoting/updating a topic that is already on fp easier (e.g live football scores). I hope seun will consider that in the future.
database queries don't generate a single row twice, unless the same information is contained on multiple rows. It could be an error in code, i have seen that in PHP before(i know NL doesn't use php).

queries in PHP are returned using foreach loop, which returns the result twice, one accessed by a number index, and the other accessed by the table_column_name as index. notice that the result appears just one after the other. Only seun can tell what happened sha.
directonpc(m): 5:49pm On Feb 06, 2017
ProNdubuisi:

database queries don't generate a single row twice, unless the same information is contained on multiple rows. It could be an error in code, i have seen that in PHP before(i know NL doesn't use php).

queries in PHP are returned using foreach loop, which returns the result twice, one accessed by a number index, and the other accessed by the table_column_name as index. notice that the result appears just one after the other. Only seun can tell what happened sha.
What is this one saying? Someone that thinks it's crap too should hit like
Seun(m): 11:06pm On Feb 06, 2017
The supermods submitted each link twice and for some reason was slow to correct it.
directonpc(m): 7:22am On Feb 07, 2017
Seun:
The supermods submitted each link twice and for some reason was slow to correct it.
Ok. Though it will be very nice if you could totally patch the backend. That way the mod can't submit a topic twice(multiple times) or ever worry about correcting that.
ProNdubuisi: 11:29am On Feb 07, 2017
ProNdubuisi:
And getting to fp, is a manual thing o, if it was an algorithm thing i would have said that, one person created two similar posts, even with topic_id as primary key it could still happen. My question is, are both posts from the same person?
ProNdubuisi:

database queries don't generate a single row twice, unless the same information is contained on multiple rows. It could be an error in code, i have seen that in PHP before(i know NL doesn't use php).

queries in PHP are returned using foreach loop, which returns the result twice, one accessed by a number index, and the other accessed by the table_column_name as index. notice that the result appears just one after the other. Only seun can tell what happened sha.
directonpc:
What is this one saying? Someone that thinks it's crap too should hit like
I told you front page was a manual thing, and seun has confirmed that, it may or may not be a programming error as i rightly pointed out. Why do Nigerians like to bully others online even when they don't know better.
directonpc(m): 1:40pm On Feb 07, 2017
ProNdubuisi:


I told you front page was a manual thing, and seun has confirmed that, it may or may not be a programming error as i rightly pointed out. Why do Nigerians like to bully others online even when they don't know better.
Must u speak?

(1) (Reply)

Any Software Developer?

(Go Up)

Sections: How To . 20
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or s on Nairaland.