Implementing Pagination using PHP and MySQL – Introduction In order to understand how pagination works in php, we need to revisit how the LIMIT clause works in MYSQL queries. If you recall, we can fetch a predetermined number of records from a database table by using a query with a LIMIT clause as follows: SELECT […]
Learn PHP Fundamentals
A Complete Beginners Guide to Arrays in PHP – Part 3
Welcome to the third and final installment of this series on A Complete Beginners Guide to Arrays in PHP. In part 3 we will explore some more of PHP’s built in array functions and and also look at some practical examples of using these functions by writing some useful scripts of our own. To start […]
A Complete Beginners Guide to Arrays in PHP – Part 2
Welcome to part two of A Complete Beginners Guide to Arrays in PHP. Previously in Part 1, we looked at the kinds of arrays supported in PHP and how to initialise, pre-initalise these arrays. We also looked at how to access and modify the values of arrays as well as using the foreach loop to […]
A Complete Beginners Guide to Arrays in PHP – Part 1
In this article I am going to give you a basic primer on Arrays and how we declare, use and manipulate them in PHP. Unlike Scalar Data Types, arrays are a constructs, special variables that contain a collection of other variables which in turn can have varying data types. One way to visualise this would […]