The Cutting Edge Tech Blog


Creating a basic blog using php and mysql Part 3 by FSherratt

Creating a basic blog using php and mysql Part 3

View part 1 here

View part 2 here

Creating the create.php page

In the last tutorial we created a dynamic page to display our blog entries but we couldn’t test to see if it was working or not as we didn’t have any entries, so in this part we’re going to build a form so we can submit our entries.

Continue reading



Creating a basic blog using php and mysql Part 2 by FSherratt

Creating a basic blog using php and mysql Part 2

View part 1 here

Creating the index.php

The index page is the homepage for your blog, for this tutorial the index page will display your blog entries. Why is it called index not home or entries? It’s called index because when we stick it in the root directory the index.php bit won’t appear in the URL so out URL will only be http://www.yourdomain.com for example. This keeps the URL tidy, because a tidy URL is a happy URL. This page is where we start to use php to its full potential. We are only going to have one page to display all our blog entries, how are you going to do that I hear you asking, well I will explain below.

Continue reading



Creating a basic blog using php and mysql Part 1 by FSherratt

Creating a basic blog using php and mysql Part 1

Introduction

In this tutorial I will be showing you how to create a very basic blogging site. This tutorial will be covering:

– Setting up a database and then connecting to it with php

– Setting up your dynamic page to display your blog entries

– Setting up a html form to create new blog entries

These will be covered in detail with all the coding explained and detailed instructions, this tutorial also includes all the source files I’ve created in the process of making this tutorial, these are available to download under the creative commons act (See http://creativecommons.org/licenses/by/2.0/uk/ for licensing agreement).

Continue reading