PHP: Simple Pagination

This article shows how to create a simple pagination in PHP and MySQL. In the example code present in this article: – We will be fetching data from a MySQL database table. – We will be showing certain rows of data in first page and other rows will be displayed in next pages. – We … Read more

PHP MySQL: Simple CRUD (Add, Edit, Delete, View) using PDO

This article shows how to create a CRUD (Create, Read, Update, Delete) application in PHP & MySQL using PHP Data Objects (PDO). PDO is a PHP extension that provides an interface for accessing databases in PHP. PDO is portable and powerful. There are many good features of PDO. The best one is that it’s cross-database … Read more

Laravel: Enable Proper Error Display

By default, you will see the following message in case any error occurs in your Laravel application: Whoops, looks like something went wrong. Whoops, looks like something went wrong. To show the exact error message details, you need to follow the steps below: Go to your Laravel root folder Rename .env.example to .env After this, … Read more

[SOLVED] Laravel Error: Failed to open stream: No such file or directory bootstrap/autoload.php

You might get the following error while trying to run Laravel for the first time. Warning: require(/var/www/laravel/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/laravel/bootstrap/autoload.php on line 17 Fatal error: require(): Failed opening required ‘/var/www/laravel/bootstrap/../vendor/autoload.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in /var/www/laravel/bootstrap/autoload.php on line 17 Problem Scenario: This error generally occurs when you download/clone Laravel from … Read more

Laravel: Simple/Easy Installation Guide

This tutorial shows step-by-step guide to install Laravel. Here, I will show two ways for installation. One is installing directly by composer create-project command and the other is by cloning or downloading Laravel from GitHub and then running the composer install command. 1) Method 1 Go to your web server root In Ubuntu, it’s /var/www/. … Read more

PHP: CRUD (Add, Edit, Delete, View) Application using OOP (Object Oriented Programming)

This article shows how to create a CRUD (Create, Read, Update, Delete) application system with PHP & MySQL using Object Oriented Programming (OOP) technique. I had written an article before about creating Simple CRUD application with PHP & MySQL but that has been programmed with procedural way. In this article, we create the same kind … Read more

MailChimp API v3.0 – Manage Subscriber using PHP & CURL

This article shows how you can use MailChimp API v3.0 with PHP and CURL to manage MailChimp subscribers. This includes adding subscribers to a list, editing/updating subscribers in a list, adding subscribers to a category/group of a list, fetching and displaying list & list id and groups and groups id as well. Getting your list … Read more

CodeIgniter: Simple Add, Edit, Delete, View – MVC CRUD Application

This article shows how to create a simple CRUD (Create, Read, Update, Delete) application with CodeIgniter. CodeIgniter (CI) is a PHP framework that helps building a full-fledged web application. This article is a continuation of the basic tutorial present in the official CodeIgniter site. The tutorial had view and add data part. But, it didn’t … Read more