Archive for December, 2007

PHP Global Variables

Written by admin on Monday, December 31st, 2007 in General.

PHP ( Hypertext Pre-Processor) uses variables to store information in a page. Standard variables can be called anything for example: $myvariable but PHP also has some global variables. These are variables that are declared on every PHP page and are used differently. Tthe 3 main global variables are: $_GET, $_POST and $_SESSION. All of these 3 global variables are arrays. Global variables can be used from page to page without havign to declare them again. The ones we are going to look at closely are $_GET and $_POST.

(more…)

Visitor Statistics Revised

Written by admin on Wednesday, December 26th, 2007 in Scripts.

Your website can only be successful if it is getting visitors, even better are loyal visitors who keep coming back. But how do you know how many visitors you are getting and when you are getting them? Well that is where a Statistics Counter comes in handy. Our Statistics counter grabs information from a visitor each time they come to your website. With this information our scripts produces statistics about when and how many times they are visiting.

(more…)

PHP Connection to a database

Written by admin on Tuesday, December 25th, 2007 in PHP Tutorials.

PHP and MySQL there has to be a connection somewhere to use them both. But how do you make a connection?

Below will show you.

First…

You should never store any of your connection information anywhere other than in a PHP
document.

Now lets get started.

Create a php file called config.php and place it in the same directory as your index page.

(more…)

CSS Horizontal Lists

Written by admin on Tuesday, December 25th, 2007 in CSS Tutorials.

CSS Lists are very helpful, but what if you want them horizontal? This is easily done with a few attributes. First you need to give your ul and li tags an id. Example:

<div id=”horizontal”>

<ul>

 <li>

 </li>

</ul>

</div>

(more…)

PHP Arrays

Written by admin on Tuesday, December 25th, 2007 in PHP Tutorials, Tutorials.

PHP is able to store data in a wide variety of ways. One way is arrays. The power to
store data seperately and output it multiple times easily.

Arrays carry data seperately once you have defined it. So if you had the data “one” and
“two” you could hanlde these 2 peices of data seperately from one variable. Here is an example of how it is stored:

<?php
$myarray 
= array(‘one’,‘two’);
?>

Also double quote or single quote can be used unless using complex arrays.
These 2 peices of information are now stored in one array but in 2 peices. To get this
information you do the following:

(more…)



Site Navigation