INTRODUCTION

PHP Web Home
Server Setup
nav.php
code.php
Download Tutorial

LESSONS

01 Hello World!
02 Text I/O
03 Arithmetic
04 Date and Time
05 Image Creation
06 Pie Chart
07 Array and Records
08 Delete a Record
09 Shopping
10 Shop Checkout
11 MM Bingo

MORE PHP

PHP Console Apps
PHP and MySQL

<!-- Here is the page source code for nav.php -->

<?php
  // ----------------------------------------------------------------------
  function nav($url, $text)
  {
    // IF THE URL IS THE CURRENT PAGE ...
    if (strcmp($url, basename($_SERVER['PHP_SELF'])) == 0)
    { 
      // PASSIVE TABLE CELL
      echo "<tr><td class=\"nofill\" bgcolor=\"#0000ff\">".
           "<font color=\"white\"><strong>$text</strong></font></td></tr>\n";
    }
    else
    {
      // ACTIVE TABLE CELL WITH HYPERLINK
      echo "<tr><td class=\"nofill\" bgcolor=\"#0000ff\" ".
           "onMouseOver=\"this.bgColor='#ff0000'\" ".
	   "onMouseOut=\"this.bgColor='#0000ff'\"><a href=\""
	   . $url . 
	   "\"><font color=\"yellow\">$text</font></a></td></tr>\n";
    }
  }
  // ----------------------------------------------------------------------
?> <a href="../index.php"><img src="logo.PNG" width="64" height="63" border="0"></a> 
<p><strong>INTRODUCTION</strong></p>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <?php
    nav('index.php', 'PHP Web Home');
    nav('00serverSetup.php', 'Server&nbsp;Setup');
    nav('navdump.php', 'nav.php');
    nav('codedump.php', 'code.php');
    nav('PhpWebTutorial.zip', 'Download Tutorial');
  ?>  
</table>
<p><strong>LESSONS</strong></p>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <?php
    nav('01hello.php',      '01&nbsp;Hello&nbsp;World!');
    nav('02textio.php',     '02&nbsp;Text&nbsp;I/O');
    nav('03arithmetic.php', '03&nbsp;Arithmetic');
    nav('04date.php',       '04&nbsp;Date&nbsp;and&nbsp;Time');
    nav('05image.php',      '05&nbsp;Image&nbsp;Creation');
    nav('06pie.php',        '06&nbsp;Pie&nbsp;Chart');
    nav('07array.php',      '07&nbsp;Array&nbsp;and&nbsp;Records');
    nav('08delete.php',     '08&nbsp;Delete&nbsp;a&nbsp;Record');
    nav('09shop.php',       '09&nbsp;Shopping');
    nav('10shop.php',       '10&nbsp;Shop&nbsp;Checkout');
    nav('11mmbingo.php',    '11&nbsp;MM&nbsp;Bingo');
  ?>
</table>
<p><strong>MORE PHP</strong></p>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <?php
    nav('../phpconsole/',   'PHP Console Apps');
    nav('../phpMySql2005/', 'PHP and MySQL');
  ?>
</table>