Building a dynamic site – Part 3
With any dynamic site, you’ll need a page that links to all your dynamic pages. The main index. If you visit the many pages on CLiX Network, there are actually many versions of these index pages that all are sub categories of the main front page.
<?
$global_dbh = mysql_connect("localhost","username","password");
mysql_select_db("mydatabasename", $global_dbh);
$query = "SELECT * FROM `pages`";
$result = [...]
Paul D Mills
Check out the brand spanking new website of Paul D Mills, the Piano guy.
www.pauldmills.com
Comments Work Again & More Updates
Just letting you all know that the comments feature works again, so please comment away. You’ll have to create a free account on this website to do it though, it is free and easy. They wont sell your email or nothin! You’ll also be able to use it to post to Jimmy’s Blog, and two [...]
Logging in with Sessions
Creating a basic password protected area can be such a usefull tool on your website, but learning how to use sessions effectively can be difficult. I hope that by the end of this tutorial you’ll know all you need to know to get your own password protected area up and running.
The login.php Code
The following code [...]
SCRIPTMAN php scripts
In the near future I will be releasing scripts under the trademark of SCRIPTMAN. For instance, SCRIPTMAN Traffic Exchange, SCRIPTMAN URL Rotator, etc. If you see a SCRIPTMAN script, it will be a script built by me.
I have thought about officially registering the trademark, SCRIPTMAN, but the price outweighs the benefits. I did a search [...]
PHP Image Resizing
In this tutorial, I’ll quickly go over how to resize images with PHP. To do so is pretty simple: Open the image to be resized, create a new image of the new size, and copy the resampled image over.
The Code
<?php
header(‘Content-type: image/jpeg’);
list($w, $h) = getimagesize($filename);
$resized = imagecreatetruecolor($width, $height);
$original = imagecreatefromjpeg($filename);
imagecopyresampled($resized, $original, 0, 0, 0, 0, $width, [...]





