PHP/MySQL

PHP Limit Data Selections In MySQL

Submitted by alpha_luna on
In this tutorial, we are going to tackle about PHP Limit Data Selections From MySQL. We have to use a LIMIT function to specify the number of our data to display. You can use this codes if you have a pagination table to have multiple pages to minimize the size of your data table.

We are going to set the LIMIT of our data into 4.

PHP Get ID Of Last Inserted Data In MySQL

Submitted by alpha_luna on

PHP Get ID Of Last Inserted Data In MySQL

After creating the tutorial for Inserting Data and Updating Data In MySQL, we can use this to get the ID for the last data that we inserted or updated in the table. For example, our table is “tbl_registration” and the ID is an AUTO_INCREMENT. You can visit the