PHP

How to Pretty Print PHP Array

Submitted by nurhodelta_17 on
This tutorial tackles on how to beautifully display PHP array. In manipulating array with PHP, often times we use print_r() or var_dump() function to display data in an array but the presentation of data in this functions is not usually eye-friendly for developers. This tutorial will provide you a simple solution on how to prettify your PHP array display.

How to Validate Select in CodeIgniter

Submitted by nurhodelta_17 on
This tutorial tackles on how to validate select in codeigniter. Often times we use input text to collect data from our users. If you are using codeigniter and added validation which includes a select tag, this tutorial will help you validate the select tag and return the value selected by user if validation fails.

Task Management System

Submitted by Chatikobo_L on

Hi guys, I am t liberty tremendous chatikobo. I am back again with code. This is a task management system. The main purpose of this project is to teach and help newbies in the programming industry. Credentials admin admin. If you are looking for a website for free, just contact me. I will help you to have one. My contact details: [email protected] +263778046755/+26378540146. Thank you

How to Create Two Submit Buttons with Different Action in One Form

Submitted by nurhodelta_17 on
This tutorial tackles on how to create two submit button with different actions in one form. Traditionally, it only takes one submit button in every form. There are instance however that you wanted to have two actions in just one form. In order to achieve this, we are going to use javascript.

How to Pass Optional Paramater to a Function in PHP

Submitted by nurhodelta_17 on
This tutorial tackles on how to pass optional parameter to a function in PHP. When we create a function and set a parameter to pass to this function, the function expects the parameter to be passed and will throw an error if none given. For instance that you wanted to pass an optional parameter to a function, hope you'll find this tutorial helpful.

How to Get the Average of One Column in MySQL Database using PHP

Submitted by nurhodelta_17 on
This tutorial tackles on how to get the average of one column in mysql database using PHP. There are instance that we wanted to get the average of one column for reporting purposes like average sales, expenses etc. Normally, we get the sum of the column then we divide it by number of rows but actually there is a sql function that determines the average of one column.