PHP Shopping Cart Tutorial – Step By Step Guide!

Previously, we learned how to create, read, update and delete database records on our PHP OOP CRUD tutorial. Today, we will put that knowledge to work by building a simple PHP shopping cart application. Overview In this tutorial, we will use the MySQL database to store cart items. We will not use cookies or sessions… Continue reading PHP Shopping Cart Tutorial – Step By Step Guide!

PHP and MySQL Shopping Cart Tutorial – Using COOKIES To Store Cart Data

Previously, we have learned how to code a shopping cart using PHP SESSIONS. Today, we will learn a second way to do it. We will have a PHP shopping cart tutorial using COOKIES! Sounds delicious, isn’t it? But the cookie that we will use is not the cookie we eat. Let me explain. In this tutorial, we’ll use… Continue reading PHP and MySQL Shopping Cart Tutorial – Using COOKIES To Store Cart Data

PHP OOP CRUD Tutorial – Step By Step Guide!

Previously, we learned how to create or insert, read, update, and delete database records with our PHP and MySQL CRUD tutorial for beginners. This time, we will learn object-oriented programming with PHP & MySQL. Overview Our tutorial for today is about creating a simple database application. We can achieve it with the help of this… Continue reading PHP OOP CRUD Tutorial – Step By Step Guide!

Generating JSON String with PHP

Today I’m going to share this code I used to generate a JSON string with data from MySQL database. For those not yet familiar, JSON is a lightweight data interchange format (like XML but it is lightweight). It has been used by companies like Google and Facebook in their APIs. Recently, I needed a JSON string… Continue reading Generating JSON String with PHP

Email Activation Code in PHP

Email activation or verification is one requirement when you’re building an app with a membership feature. Our Email Activation Code in PHP will help you with that! This is one way to detect if there’s really a person behind the submitted email address. An email address is considered invalid if no person was able to… Continue reading Email Activation Code in PHP

Published
Categorized as PHP Tagged ,

Apache .htaccess RewriteRule Examples with PHP for Clean URLs

Our code for today will make your website URLs clean and attractive. Clean URLs are user and SEO friendly, it does not contain any query string like: …page.php?param1=something&id=1111 Thus, giving our users and search engines (like Google) an idea what your link is all about once it was shared to social media or indexed by… Continue reading Apache .htaccess RewriteRule Examples with PHP for Clean URLs

PHP and MySQL Shopping Cart Tutorial – Using SESSIONS To Store Cart Data

Previously, we learned how to build a Shopping Cart with PHP & MySQL where we used a database to store cart items. Today, we will learn another version of it. We will use PHP session variables to store cart items. Overview Introduction If you want to build your own online shopping cart from scratch, we… Continue reading PHP and MySQL Shopping Cart Tutorial – Using SESSIONS To Store Cart Data