PHP

Calculate Number of Days in a Month using PHP

Submitted by alpha_luna on
PHP cal_days_in_month() The cal_days_in_month() it function to return the number of days in a month of a specified year and calendar. This is the form of this function: cal_days_in_month(calendar,month,year) calendar (required) Specifies the calendar to use month (required) Specifies the month year (required) Specifies the year Example: The following example shows the basic on how to use the cal

Uploading of Photos using Advance PHP

Submitted by GeePee on
In this tutorial I’m going to show you how to upload photo using PHP/MySQL, and this tutorial is a continuation of our previous topic called Social Networking Site: Simple Uploading of Profile picture in the home page. But in this time we’re not going to use the “home.php” file instead, we’re going to create a new page named “upload_photos.php”.

How to Create a Page Navigation (Pagination) using PHP/MySQL with Twitter Bootstrap

Submitted by GeePee on
In this tutorial, I'm going to show you how to create a simple Page Navigator or a Pagination using PHP and MySQL Database with Twitter bootstrap. If you are a web developer or you want to learn about programming, it is very important to know about Pagination with PHP and MySQL. Using the pagination with PHP, it allows you to paging the data into number of pages. To start with this application, first we need to set up our framework and file directories. This time, you need to download bootstrap framework.

Playing YouTube video with the twitter bootstrap framework

Submitted by GeePee on
In this tutorial, I'm going to show you how to embed YouTube video in a web page using the twitter bootstrap framework. Since we will be using bootstrap for convenient and nice looking web application. First you need to download the twitter bootstrap framework. Then after you download the twitter bootstrap, extract and copy the files such as: css, fonts and js folder.

Part III: Generating Autonumber using PHP/MySQL

Submitted by GeePee on
In some of our previous tutorial, we discuss how to Create, Read, Update and Delete using object-oriented programmming approach. This tutorial is a continuation of our previous topic called "Part II: Updating and Deleting of MySQL data using an OOP approach in PHP". But this time we’re going to focus on how to generate autonumber. This autonumber can be used as a unique id in your aside from your database.

Filling the Twitter Bootstrap-Select Dynamically From MySQL Data Using PHP

Submitted by GeePee on
In this lesson is a continuation of our previous tutorial called Creating and Populating table with MySQL Data using Twitter Bootstrap framework. At this time, we’re going to use the same framework. But we will focus on how to populate the Twitter Bootstrap-Select dynamically from MySQL Data using PHP and display the corresponding value in a label form.

Part II: Updating and Deleting of MySQL data using an OOP approach in PHP

Submitted by GeePee on
This tutorial is a continuation of our previous tutorial called Part I Creating and Reading of MySQL Data using an OOP approach in PHP. Be sure to read it before continuing this tutorial. All we need is add three PHP files called edit_user.php, process_edit_user.php and deleteuser.php. Create a file called edit_user.php. and add the following code: The main purpose of this code is used to display the selected data from “index.php”.