PHP

Page Navigation using CodeIgniter Pagination

Submitted by admin on

In our previous tutorial called “Getting Started with CodeIgniter” I discuss on how to install and configure CodeIgniter. This time I will teach you on how to create a simple “Page Navigation”. This is just a comparison of my previous code found at PHP Page Navigation. You’ll learn the difference between the standard PHP and using a CodeIgniter framework.

Now let us configure the CodeIgniter.

CodeIgniter Tutorial

Submitted by admin on

What is CodeIgniter?

CodeIgniter is a PHP Framework and is lightweight compared to other framework. Its purpose is to help you code faster and teach you how to apply MVC (Model–View–Controller) architecture to separate code from design.

What are the advantages of CodeIgniter?

I can’t tell you all the advantages of using CodeIgniter but the following are most common features of using a framework.

Online Reservation Widget Using jQuery Datepicker

Submitted by admin on
This code is part of the Online Hotel Reservation I created for L’Fisher Hotel. I used jQuery to select a date using Datepicker. The feature of this code is to automatically change the checkout date based on checkin date. It adds 1 day from checkin date. For example if the checkin date is November 8, 2012 then the checkout then would be November 9, 2012. Additionally, the checkout date cannot be

PHP Page Navigation

Submitted by admin on
I created this script from PHP Pagination Class. It took me half an hour to create this little script. This script is very useful if you want page navigation in your record. Usage: Just include the class file. include('ps_pagination.php'); then create a new object. $pager = new PS_Pagination($conn, $sql, 8, 10); Complete source code: Page Navigation in PHP Country ID Country Create a database

Read More Script in PHP

Submitted by admin on
This is a simple script that allows you to create a teaser/excerpt in your home page. The function contains two arguments. To use it, you need to pass a parameter into the function. Parameters: content = required word_limit = optional Function: function excerpts($content, $word_limit = 30) { $words = explode(" ",$content); return implode(" ",array_splice($words,0,$word_limit)); }

Loop between Two Dates in PHP

Submitted by admin on

There are times that you want to loop between two dates in PHP. If you have, for example, formatted the date like m/d/Y, you cannot simply use it in while loop statement.

Before you can loop between two dates in PHP, you need to convert it first to Unix timestamp using the strtotime function.

Here’s an example of how to do it:

Payroll System using PHP/MySQL

Submitted by joel_daitol on
re-design the database and the program this is only a trial hope it can help!!!! software require: Xampp OR wamp php editor like notepad++ or notepad email me: [email protected] send me a message on my http://www.facebook.com/joel.daitol NOTE: sorry guys the complete code for this project has been deleted i dont have any copy ffor this project., anyway you can create your own the only limit

Refferral System

Submitted by rhenz23 on
Hi.,Im renz ,. I'm beginner in sourcecodester,.hope you like this code,.you can modify it,. Description : Can Print the applicant's name and the adress of the company applied, postion applied.,and also the flash background:) Hope You like It:) database name peso.sql., just contact me,.for more information,.tnx:) +639075790118

PHP Pagination

Submitted by EmbuscadoGeoff on
Viewing of datas on a web pages is very important, but not all datas should be viewed by the client. There is always a restrictions or limits when it come to viewing of datas from a web-enabled database. Hi my name is Geoffrey Embuscado, Im new to sourcecodester and I made a PHP application just to share my knowledge I obtained at the Jose Rizal University also my current school. Im a third year