Sort by :
Date
Rating
Editor's Pick Only
You have havent done so yet, I strongly recommend you first read my Intro To Object before starting this tutorial.
One thing you dont see too much, is tutorials on object oriented php. Now some may be familiar with object from Java and C++, and then on the other hand, many of you may have no clue what object is. For this tutorial, you need to be pretty fluent in php.
Theres two different ways this can be done. The first is by getting results from a mysql query, the second is going through the values of an array. I'll go over both. First the full files (ill break it up into two files, one using mysql, and one using an array)
The first thing we need to do is connect to the database. I always put my db connection in a universal file, that way I can just change the variables once if I need to; but for the sake of the tutorial, im putting it in this file.
The first thing we do here is echo out the html, again I wont go over this because theres really nothing to explain, except the css. We have two css classes, one for each of the alternating rows.
In the last tutorial we learned how to display the time using php. Now this is cool and all but lets get even cooler and learn how to put that time to work and display custom greeting depending on the time of day.
In this tutorial we will learn how to display the day and/or time by using php. It's a very easy thing to do using php (theres only one line of code, thats right, only one!) so, lets get started.
Editor's Pick in PHP Tutorials, June 2007
This tutorial is a Web Programming in PHP article on Object Orient Programming: Image Class. The author says, "I share the code I use for my image class." Four functions: Upload, Resize, Get a file extenstion, Resize on the fly.
Ever wonder how to make navigation where you stay on the index page, but the content changes? I'm sure you have seen the URL of pages like this, they often look similar to this: index.php?content=Home.
Editor's Pick in PHP Tutorials, April 2007
This author has revised his already excellent article to make it even simpler for you to create a PHP Image Thumbnailer. This article will help you to add the code necessary to automatically resize images proportionally.












