February 23, 2012 learn_php

PHP and MySQL database connection

PHP and MySQL Database connection A dynamic website is not dynamic to it’s fullest unless it contains any means to store data or retreive it. There is the need to track user changes to anything within the website, for example, their user profile. Back in the older days, websites used to utilize what is known […]

Read more
February 14, 2012 CodeIgniter Image

Codeigniter Tables class

Codeigniter HTML Table class Today I want to talk about an interesting class that is built within codeigniter. This class consists of just creating an HTML Table, but except, you do it with ease, and I am going to show you how. In this example, we are going to assume we have a database connection, […]

Read more
February 2, 2012 learn_php

Handling dates in PHP

Handling dates in PHP Dates in php are often overlooked and people tend to think that they will not need to handle dates, but indeed my friend, you will need to know how to handle dates when working with PHP. The most common function in PHP to retrieve the date is date(). This function takes […]

Read more
January 28, 2012 learn_php

Exception Handling in PHP

Exception Handling in PHP In special cases during a development, there will be the need to handle errors of some sort. PHP5 has introduced this new feature to handle exceptions with the Exception Class, and on this post, we will learn what the basics are for error handling with this exception handling class. In many […]

Read more
December 22, 2011 learn_php

Sessions in PHP

Sessions in PHP Before jumping right into sessions in PHP, we should take a look at what exactly is a session. Since we will talk about sessions in PHP, then we are certainly speaking of a website, some sort of communication with a client and server connection, and even a user interaction. So a session […]

Read more
November 29, 2011 learn_php

String manipulations in PHP

String manipulations in PHP In many cases within our website, we might need to format some strings that the user has entered. I have put together just a few of these native PHP functions that will help out to our advantage and make our work look a lot nicer. The first thing we should all […]

Read more
November 16, 2011 Composition of an array

Arrays in PHP made easy

Arrays in PHP made easy It has been mentioned in previous posts, all about scalar variables. These are the ‘normal’ variables we are able to use in a PHP program. An array is somewhat similar to a variable, in that it takes a value, but not just one value, it can take many values. You […]

Read more