<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>J-Henderson &#187; TUTORIALS</title>
	<atom:link href="http://www.j-henderson.co.uk/category/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.j-henderson.co.uk</link>
	<description>PHP &#38; HTML Tutorial site</description>
	<lastBuildDate>Sun, 24 Jan 2010 18:03:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Getting Started</title>
		<link>http://www.j-henderson.co.uk/2010/01/getting-started-2/</link>
		<comments>http://www.j-henderson.co.uk/2010/01/getting-started-2/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 18:03:03 +0000</pubDate>
		<dc:creator>J-Henderson</dc:creator>
				<category><![CDATA[Getting Started]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache friends]]></category>
		<category><![CDATA[lampp]]></category>
		<category><![CDATA[TUTORIALS]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://www.j-henderson.co.uk/?p=41</guid>
		<description><![CDATA[Before you dig into the tutorial section of this website i recommend that you take a moment to read through this section, here i will go through the process of installing a local web server to your machine, you will need to do this if you wish to practice PHP or Javascript in your web ]]></description>
			<content:encoded><![CDATA[<p>Before you dig into the tutorial section of this website i recommend that you take a moment to read through this section, here i will go through the process of installing a local web server to your machine, you will need to do this if you wish to practice PHP or Javascript in your web pages.</p>
<p>First you will need to install a program called XAMPP you will be able to find this here: <a href="http://www.apachefriends.org/en/xampp.html">XAMPP</a></p>
<p>Follow the instructions for installing the program, i generally recommend that you do not install MySQL and Apache as a service mainly for security and to keep the minimum of background programs open at any time. </p>
<p>Once the program has installed successfully you will need to start up the Apache and MySQL service this can be done by going to start>XAMPP for windows>XAMPP Control Panel.</p>
<p>Now we have the Apache and MySQL server running, we can create an area for our website, on your computer navigate to C:\xampp\htdocs and create a folder for your website for example &#8220;C:\xampp\htdocs\mywebsite&#8221; this will be where all our HTML and PHP files will be saved.</p>
<p>Once you have created an index.html(see: <a href="http://www.j-henderson.co.uk/2010/01/6/" title="Your first HTML page" >Your first HTML page</a>) file within C:\xampp\htdocs\mywebsite, you will be able to view your page by browsing to http://127.0.0.1/mywebsite/ in your favourite web browser.</p>
<p>I recommend that you also download a text editor with syntax highlighting, this will make troubleshooting allot easier, there are two I would recommend:</p>
<p>Scite: <a href="http://www.scintilla.org/SciTEDownload.html">Scite</a><br />
Notepad++: <a href="http://notepad-plus.sourceforge.net/uk/site.htm">Notepad++</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.j-henderson.co.uk/2010/01/getting-started-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using tables for your content</title>
		<link>http://www.j-henderson.co.uk/2010/01/using-tables-for-your-content/</link>
		<comments>http://www.j-henderson.co.uk/2010/01/using-tables-for-your-content/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 14:09:26 +0000</pubDate>
		<dc:creator>J-Henderson</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[content]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[organisation]]></category>
		<category><![CDATA[table]]></category>
		<category><![CDATA[TUTORIALS]]></category>

		<guid isPermaLink="false">http://www.j-henderson.co.uk/?p=25</guid>
		<description><![CDATA[In more traditional websites tables were used to layout the entire website. This method of using tables has now been replaced with CSS, even though CSS is very powerful there are some things you will want to use tables for.
Lets have a quick look and see what the code for a standard table will look ]]></description>
			<content:encoded><![CDATA[<p>In more traditional websites tables were used to layout the entire website. This method of using tables has now been replaced with CSS, even though CSS is very powerful there are some things you will want to use tables for.</p>
<p>Lets have a quick look and see what the code for a standard table will look like.</p>
<pre>
<code>&lt;table border="1"&gt;
  &lt;tr&gt;
    &lt;td&gt;
      First Table cell
    &lt;/td&gt;
    &lt;td&gt;
      Second Table cell
    &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;
      2nd Row, First Table cell
    &lt;/td&gt;
    &lt;td&gt;
      2nd Row, Second Table cell
    &lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;</code>
</pre>
<p>The Code above will produce the table below:</p>
<table border="1">
<tr>
<td>
      First Table cell
    </td>
<td>
      Second Table cell
    </td>
</tr>
<tr>
<td>
      2nd Row, First Table cell
    </td>
<td>
      2nd Row, Second Table cell
    </td>
</tr>
</table>
<p>Now there is quite a bit here lets take a look at our tags:</p>
<p><strong><code>&lt;table&gt;</code>:</strong> The begining of our table, within this tag we can set a few variables such as border, cellspacing and cellpadding, in this example we have set the border to a width of 1 pixel.</p>
<p><strong><code>&lt;tr&gt;</code>:</strong> This tag is used to mark the begining of a row.</p>
<p><strong><code>&lt;td&gt;</code>:</strong> Begining of a table cell, traditionally our content that we wish to display will go after this tag before the end of the cell.</p>
<p><strong><code>&lt;/td&gt;</code>:</strong> End our cell.</p>
<p><strong><code>&lt;/tr&gt;</code>:</strong> End of our Row. </p>
<p><strong><code>&lt;/table&gt;</code>:</strong> And finally the end of our table.</p>
<p>There are a few more things you can do with tables, what if you wish for part of your content to span accross your table? well we can use a colspan value, as demonstrated below:</p>
<pre>
<code>&lt;table border="1"&gt;
  &lt;tr&gt;
    &lt;td colspan="2"&gt;
      First Table cell
    &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;
      2nd Row, First Table cell
    &lt;/td&gt;
    &lt;td&gt;
      2nd Row, Second Table cell
    &lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;</code>
</pre>
<p>The above code will give us the following result:</p>
<table border="1">
<tr>
<td colspan="2">
      First Table cell
    </td>
</tr>
<tr>
<td>
      2nd Row, First Table cell
    </td>
<td>
      2nd Row, Second Table cell
    </td>
</tr>
</table>
<p>The colspan attribute tells your browser that the cell should span by a specified amount, the easiest way to think of this is to think of the &#8220;merge cell&#8221; feature in Microsoft Excel. There are a few other tags you can use with tables i will very quickly go over them here:</p>
<p><strong><code>&lt;th&gt;</code> &#038; <code>&lt;/th&gt;</code>:</strong> These tags are used in place of the <code>&lt;td&gt;</code> &#038; <code>&lt;/td&gt;</code> tags, and denote a <em>T</em>able <em>H</em>eader.</p>
<p>we also have the use of <code>&lt;thead&gt;</code>, <code>&lt;tbody&gt;</code> and <code>&lt;tfoot&gt;</code>, these tags are used after <code>&lt;table&gt;</code> but before <code>&lt;tr&gt;</code>, each marks what content should go where, top of the table, main content or the foot of the table, each tag has its corresponding end tag <code>&lt;/thead&gt;</code>, <code>&lt;/tbody&gt;</code> and <code>&lt;/tfoot&gt;</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.j-henderson.co.uk/2010/01/using-tables-for-your-content/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Meta tags &#8211; Making your webpage search engine friendly</title>
		<link>http://www.j-henderson.co.uk/2010/01/meta-tags-making-your-webpage-search-engine-friendly/</link>
		<comments>http://www.j-henderson.co.uk/2010/01/meta-tags-making-your-webpage-search-engine-friendly/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 21:43:49 +0000</pubDate>
		<dc:creator>J-Henderson</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[content type]]></category>
		<category><![CDATA[description]]></category>
		<category><![CDATA[engine]]></category>
		<category><![CDATA[friendly]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[keywords]]></category>
		<category><![CDATA[Meta tags]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[search engine]]></category>
		<category><![CDATA[TUTORIALS]]></category>

		<guid isPermaLink="false">http://www.j-henderson.co.uk/?p=18</guid>
		<description><![CDATA[By now you should have created your first web page and be ready to post this online, however you may be wondering how to go about making your site search engine friendly? Well your anwser is META tags. Lets take a look at a simple HTML page with some meta tags.

&#60;html&#62;
  &#60;head&#62;
   ]]></description>
			<content:encoded><![CDATA[<p>By now you should have created your first web page and be ready to post this online, however you may be wondering how to go about making your site search engine friendly? Well your anwser is META tags. Lets take a look at a simple HTML page with some meta tags.</p>
<pre>
<code>&lt;html&gt;
  &lt;head&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /&gt;

    &lt;meta name="description" content="J-Henderson, Tutorials for PHP and HTML" /&gt;
    &lt;meta name="keywords" content="J-Henderson, Henderson, Tutorials, PHP, HTML, Blog" /&gt;

    &lt;title&gt;My First Page&lt;/title&gt;

  &lt;body&gt;
    &lt;h1&gt;My header&lt;/h1&gt;
      &lt;p&gt;a paragraph&lt;/p&gt;
  &lt;/body&gt;
&lt;/html&gt;</code>
</pre>
<p>For the most part these are pretty self explanatory:</p>
<p><strong>meta name=&#8221;description&#8221;:</strong> This is the description for your website, you may not realise that this description is shown to the user whenever they use a search engine, the description is normally shown under the main link to your website, and only contains a few paragraphs detailing your site.</p>
<p><strong>meta name=&#8221;keywords&#8221;:</strong> Keywords are what a search engine uses to index your site, using the keywords in the code above if you were to goto your favourite search engine such as google and type in the keywords above this site would show up pretty near the top of the results.</p>
<p>The less obvious meta tag, <code>&lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /&gt;</code> tells our browser what character encoding to use, to be able to validate your web code you will need to tell the browser what character encoding to use, ISO-8859-1 is pretty much the standard encoding you want to use.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.j-henderson.co.uk/2010/01/meta-tags-making-your-webpage-search-engine-friendly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connecting to a MySQL Database</title>
		<link>http://www.j-henderson.co.uk/2010/01/connecting-to-a-mysql-database/</link>
		<comments>http://www.j-henderson.co.uk/2010/01/connecting-to-a-mysql-database/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 21:20:08 +0000</pubDate>
		<dc:creator>J-Henderson</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[connecting]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[TUTORIALS]]></category>

		<guid isPermaLink="false">http://www.j-henderson.co.uk/?p=14</guid>
		<description><![CDATA[ What you Need:

Notepad
MySql Database
Server with APACHE and MySQL set up (for testing i use XAMPP)

How To
Connecting your code to a MySQL database can open up all sorts of possibilities, without it the comments section here would not be available, and i wouldn&#8217;t be able to update this website through my Admin panel. It is ]]></description>
			<content:encoded><![CDATA[<p><strong> What you Need:</strong></p>
<ul>
<li>Notepad</li>
<li>MySql Database</li>
<li>Server with APACHE and MySQL set up (for testing i use XAMPP)</li>
</ul>
<p><strong>How To</strong><br />
Connecting your code to a MySQL database can open up all sorts of possibilities, without it the comments section here would not be available, and i wouldn&#8217;t be able to update this website through my Admin panel. It is vital part of current and future web design and is only becoming more popular with the advent of Web 2.0. So how do you connect to a MySQL database? well all you need is the code below.</p>
<pre>
<code>&lt;?php
//Database Variables
$databaseHost = "localhost";
$dbusernane = "username";
$dbpassword = "password";
$dbName = "yourDatabase";

//connect to the database
$connect = mysql_connect($databaseHost, $dbUsername, $dbPassword) or die('Could not connect to MySQL: '. mysql_error());

//select Database
$conn = mysql_select_db($dbName, $connect)or die('Could not select the Database: '. mysql_error()) ;
?&gt;</code>
</pre>
<p>Lets look at these variables a little more closely.</p>
<p><strong>$databaseHost:</strong> This should be set to the I.P address or server name that you have your database set up on, some ISPs or web hosting services will provide you with an I.P address, however for the most part you should set this value to &#8220;localhost&#8221; or 127.0.0.1.</p>
<p><strong>$dbUsername:</strong> This should be set to the username which contains privileges to make changes to your database, again this might be provided for you, However if you set up a database yourself you should set the username to the one you created.</p>
<p><strong>$dbPassword:</strong> This should be the password that correlates with your username.</p>
<p><strong>$dbName:</strong> Set this to the name of the database you will be editing.</p>
<p><strong>or die():</strong> Tells php to display your custom error message if the query fails.</p>
<p><strong>mysql_error():</strong> retrieve and display the error from SQL.</p>
<p>That&#8217;s all there is to it folks, later i will be going into storing and retrieving data from a database.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.j-henderson.co.uk/2010/01/connecting-to-a-mysql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Your first HTML page</title>
		<link>http://www.j-henderson.co.uk/2010/01/6/</link>
		<comments>http://www.j-henderson.co.uk/2010/01/6/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 20:27:28 +0000</pubDate>
		<dc:creator>J-Henderson</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[easy]]></category>
		<category><![CDATA[first page]]></category>
		<category><![CDATA[TUTORIALS]]></category>

		<guid isPermaLink="false">http://www.j-henderson.co.uk/?p=6</guid>
		<description><![CDATA[Hello and welcome to the first tutorial for this site, here i will be delving into what i consider to be the foundation of all web design, HTML.
What is HTML?
HTML Stands for HyperText Markup Language. This language is interpreted by Web Browsers and is the main backbone of the internet, You can view the HTML ]]></description>
			<content:encoded><![CDATA[<p>Hello and welcome to the first tutorial for this site, here i will be delving into what i consider to be the foundation of all web design, HTML.</p>
<p><strong>What is HTML?</strong></p>
<p>HTML Stands for HyperText Markup Language. This language is interpreted by Web Browsers and is the main backbone of the internet, You can view the HTML in this page by right-clicking and choosing &#8216;View Source Code&#8217;. If you wish to know more about HTML you can find more information here.</p>
<p><strong>Your First Page</strong></p>
<p>Now since your here im guessing you cant wait to get your feet wet. Well all you need to start learning html is this guide and Notepad, now open a new notepad document and copy the code below.</p>
<pre>
<code>&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;My Page &lt;/title&gt;
  &lt;/head&gt;

  &lt;body&gt;
    &lt;h1&gt;My first webpage!&lt;/h1&gt;
      &lt;p&gt;Main content.&lt;/p&gt;
  &lt;/body&gt;
&lt;/html&gt;</code>
</pre>
<p>Now to save your text document simply goto &#8216;file > save as&#8217; then make sure that the drop down box &#8216;Save as Type&#8217; has &#8216;All Files&#8217; selected. Now just save the document as &#8216;index.html&#8217; without the quotes. Now if you double click the file you just created you will see the page you just created in your default web browser.</p>
<p><strong>Now then what exactly does the code mean? </strong></p>
<p>well <code>&lt;HTML&gt;</code> denotes the begining of our html page, this tag also tells the browser that this is a Hypertext Markup Language document, next we have the <code>&lt;head&gt;</code> tag this does not show any content on the page however this is where our Meta Information, title and javascript would go. The <code>&lt;title&gt;</code> tag denotes the begining of our title which will show on the title bar of the browser, the <code>&lt;/title&gt;</code> tag simply tells the browser where the title ends. next we need to end the head using <code>&lt;/head&gt;</code> and start the main body of the page using <code>&lt;body&gt;</code> the body will contain all of the important stuff that we want to show on our page. Inside the body we have created a header for our content using the <code>&lt;h1&gt;</code> and <code>&lt;h2&gt;</code> tags, next we have a paragraph denoted by <code>&lt;p&gt;</code> and <code>&lt;/p&gt;</code>, and eventually we simply end the body and our page using the <code>&lt;/body&gt;</code> and <code>&lt;/html&gt;</code> tags.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.j-henderson.co.uk/2010/01/6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
