/ Published in: PHP
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 /** * A utility method that builds out the SQL for the LIMIT / OFFSET chunk of the SQL * * @param page the page that will be pulled, will affect the OFFSET * @param perpage how many items per page, will affect the LIMIT * @return string an SQL statement consisting of the LIMIT and OFFSET */ private function _buildLimitOffsetSQL($page,$perpage) { return "LIMIT $limit OFFSET $offset"; }
Comments
                    Subscribe to comments
                
                