| TOTAL: 19 Page: 1 of 1 |
|
Next-Previous Links
This tutorial will show you how to make next previous links for a mySQL database. If you have a myriad of data on your database and want to display it in a nice orderly manner, then you might want to display only part of the data per page so that all the data doesn't makes a scrolling nightmare. For example, say you made a shoutbox using the Shoutbox tutorial, but want to have it so people can scroll through the previous messages. The solution is to have next-previous links so they can browse f

| Hits: | 48 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-11 |
Directory List
Learn how to make a directory list in PHP. A simple script that lists all the items in the directory including folders and files and even makes a link out of them. Its an all purpose script which you can use to do other things.

| Hits: | 33 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-11 |
Writing a Template System in PHP
Templating is an easy way to create large sites without much hassle in maintaining a consistent look and feel across them. A standalone template file contains the HTML framework of the page and placeholders. A script can take the template file and replace the placeholders with the appropriate content to produce the final page. While I was working on a recent project I came across the need for a basic templating script. There are several templating systems available; some are native to PHP whi

| Hits: | 50 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-10 |
PHP - Previous and Next Links
One of the most common requests I see is "How do I add previous and next links to my pages?". Hence this tutorial. When we get done here, you should be able to add previous and next links to your pages that you show database results with.

| Hits: | 97 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-10 |
Writing a Template System in PHP
Using Multiple Pages for Navigation, for Codewalkers. notepad's code is a really nice script, and it works perfectly in conjunction with Matt's "Creating a News System with PHP."

| Hits: | 69 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-10 |
Making Expanding and Collapsing Menus
Have you wondered how to make expanding and collapsing menus in PHP? When you click on a menu item, the submenu will expand, and when you click on the menu item again, it will collapse. If you want that feature, this tutorial will show you how to do it.

| Hits: | 71 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-10 |
Writing your own template class (Part 1)
It shows you how to write your very own templating engine. By using this engine, you will be able to seperate your HTML files from your PHP files, effectively making your site easier to change and allow the option of having several user defined layouts :)

| Hits: | 98 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-10 |
Website Navigation System using the popular ?id=page Style
This tutorial shows code using the popular ?id=page Style for Website Navigation System . $val = $_GET['id']; // Replace id with whatever you want to use, eg ?id=page $val .= ".php"; // Makes the filename complete so if you called ?id=index, it would be index.php it has to look for $dirty = array(".."); $clean = array(""); $val = str_replace($dirty, $clean, $val); // Prevent people from viewing root files like your password (should work i just quikly added it without testing) if (i

| Hits: | 62 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-09 |
Create Expanding & Collapsing Menus in PHP - Includes a downloadable sample
Right, so you are making a new website, and you wanna spiff up your design with collapsing and expanding menus? I’ve created an easy to use way to put in as many menus as you like, and it uses sessions to store which menus to show and which to hide. I’ll outline the basics below: 0) { if($_SESSION['whattoclose'] == NULL) { $_SESSION['whattoclose'] = $_GET['set']; } else { $_SESSION['whattoclose'] = $_SESSION['whattoclose'] . '|'

| Hits: | 169 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-09 |
Php alternative to mod_rewrite - Clean Urls with PHP
Make search engine friendly urls using php instead of using mod_rewrite. This tutorial will not cover how to get search engine friendly urls with using mod_rewrite, but how to do the same using php and apache filesmatch instead of mod_rewrite.

| Hits: | 94 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-09 |
PHP Links like: index.php?content=Home
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.
This is actually very simple. It is done using the $_GET variable, and includes.
Lets start off with the Index.php page.
$content = $_REQUEST['content'];
if($content == "") {
$content = "home";
}
echo<<

Hits:
56
Platforms:
Windows
Ratings:
Last Updated:
2006-07-09

| Hits: | 56 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-09 |
Last Modified - Display the date and time when a page was last updated
Letting visitors know the last time a page was updated is really easy to do in PHP. First of all, place the following anywhere in your .php page where you would like it to appear. //where the main page you want to display for modification $last_modified = filemtime("thepageyouwant.php"); //print it all out print("Page Last Edited"); print(date("m/j/y h:i", $last_modified)); ?> What does all this mean? $last_modified = filemtime("page.php");- this tells the browser wh

| Hits: | 63 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-09 |
Navigation - Learn how to make pages with ids
In order to use this, you will need to rename your main page to whatever you'd like(ex. index2.php). Make sure to place the file name of your renamed index page where it says: include('themainpage.html'); You will put the code by itself in a new page(ex. index.php). I think its best just to use a php extension for all your pages. It's alot easier.

| Hits: | 44 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-09 |
PHP - Previous and Next Links
One of the most common requests I see is "How do I add previous and next links to my pages?". Hence this tutorial. When we get done here, you should be able to add previous and next links to your pages that you show database results with.

| Hits: | 60 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-09 |
Website Template System - Extensive Guide to Templating with XML and PHP
Big topic in programming circles, especially PHP/Ruby is OOP (object orientated programming) and also the MVC pattern (model-view-controller) The key concept of MVC is to seperate the three parts: - view - template (sites design and css/javascript ect) - model - the transactions between server and database/other servers - controller - the bit which pulls the M+V together Now, there are two ways of keeping the view seperate. One is storing it in a database, which i think is a pretty piss

| Hits: | 36 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-08 |
Create a fully database driven flexible menu
In this tutorial we'll see how to create a fully database driven menu. Our menu will work fine also if we decide to insert some links later in time as we'll use a position index to sort the menu links. First we need to create the database table for our menu. You can use this script to create the table. The fields we'll use are: id - we just to have a primary key in our table, it can also be useful if we want to add additional submenues as tables name - is what will be displaied as the

| Hits: | 87 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-08 |
Simple and flexible navigation in PHP
This tutorial is meant for those just getting familiar with php. It will teach you how to create a simple but effective and flexible navigation bar. Note: You should be somewhat familiar with PHP before you look at this tutorial. Instead of having to edit an html page over and over, you can simply use PHP to quickly edit your navigation bar. To start things off, create a new file called nav.php or nav.inc (change the name to whatever you want). Create this file in a folder called include

| Hits: | 26 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-08 |
PHP Navigation - User Friendly PHP Navigation Scrip that Includes a FAQ
This code created a PHP Navigation to help keep your FTP Directory As Neat As Spew and to have an advanced navigation system. for this to work u will need to do the following: 1. Make a new folder in your ftp directory where your index.php file is called mods 2. Make a new folder called test 3. In test make a new file called fred.php 4. write the text "Hello world" in fred.php, now you should have mods/test/fred.php 5. Go to http://yourdomain.org/?id=test&page=fred and it should say "Hello

| Hits: | 38 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-08 |
Create Dynamic And Stylish Content Boxes with PHP
This is about how to have nice looking content boxes where the title always changes depending on the page well here is how we do it.

| Hits: | 24 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-08 |