How to Set Up Expiration to Sessions using PHP

Submitted by nurhodelta_17 on
In this tutorial I'm going to show you how to set up expiration on PHP sessions. I have created a simple login in this tutorial but if you prefer, may also learn Login with Validation in my previous tutorial. This tutorial will not give you a good design but will give you an idea in setting up session and expiry in PHP.

Creating our Login Form and Login Script

First, we create our login form with the login script.

Adding and Deleting Item(s) in Array using PHP

Submitted by nurhodelta_17 on
In my previous tutorial, I've created the Basic Array Functions. To follow up the tutorials about array, I've created another which will give you knowledge on how to add and delete item/s in array. This tutorial does not include a good design but will give you idea on the topic.

Creating our Form and Script

We create our add form, delete form and our scripts in adding and deleting items. To create the page, open your HTML code editor and paste the code below after the tag.

Basic Array Functions in PHP

Submitted by nurhodelta_17 on
In this tutorial, I'm going to show you the basic functions in working with array in PHP. I'm going to post tutorials about arrays, so this tutorial is the starting line. An array is a data structure that stores one or more values into a single value. It is useful in defining large number of variables like having 50 variables. Instead of declaring 50 of them, you can store this 50 values into a single variable.

Creating our Functions

The first and last step is to create our page with our functions. I've also included in the comments the definition of each function.

Getting the Last Inserted ID in MySQL Table using PHP

Submitted by nurhodelta_17 on
In this tutorial, I'm going to show you how to get the last inserted id in our database table. In this tutorial, I have set up an Insert Form to show the id that will be inserted in our MySQL database. I've included 2 mysqli methods in this tutorial in the comments. So, feel free to switch between the two. Creating our Database First, we're going to create a database that contains our data. 1

Python - Simple CRUD With Django Framework

Submitted by razormist on
In this tutorial we will create a Simple CRUD With Django Framework. Django is an advanced Web framework written in Python that makes use of the model view controller (MVC) architectural pattern. The official project site describes Django as "a high-level Python Web framework that encourages rapid development and clean, pragmatic design.

Converting From MySQL DateTime to another Format in PHP

Submitted by nurhodelta_17 on
In this tutorial, Im going to show you how to convert mysql datetime format into your desired format. I've added symbols and their value for you to further understand the conversion. This tutorial uses two mysqli methods that I have included in the comments. So, feel free to switch between the two. Creating our Database First, we're going to create a database that contains our data. 1. Open

How to Select Data By Month and Year in PHP/MySQL

Submitted by nurhodelta_17 on
In my previous tutorial, I've discussed How to Select Data between two Dates. So, I've created another topic regarding selecting data with dates which is on How to Select Data by Month and Year using PHP. Also, in this tutorial, I've created two mysqli methods that I've added in the comment so feel free to switch between them. Creating our Database First, we're going to create a database that

Selecting Rows from MySQL Table using checkbox in PHP/MySQL

Submitted by nurhodelta_17 on
In this tutorial, I'm going to show you how to select rows from MySQL Table using checkbox in PHP/MySQLi. This tutorial does not include a good design but will give you knowledge on the said topic. Creating our Database First, we're going to create a database that contains our data. 1. Open phpMyAdmin. 2. Click databases, create a database and name it as "checkbox". 3. After creating a database