Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

New answers tagged

2

First of all, it is very good you decided to ask. Also, it is also very good you are using count(*) to get the count. For the rest follow the review. There must be a single table with comments where the comment type is distinguished by means a dedicated field. Which makes your code would be function countComments($ID, $type){ $st = $this->conn->...


2

1) Simply don't pass large arrays, use some abstraction. 2) Once you add the abstraction, you can provide db support. The following abstraction might show how to do it: EDIT: ok so i have added some more to point at the core of your problems: The paginator doesnt really need the setters to be part of its interface. Also see I use Iterator to represent ...


Top 50 recent answers are included