PHP 101 Week Two
This week we learned to loop,
string and combine variables into basicly anything we wanted.
As if! :P

LzyDaz Designs
www.lzydaz.com
This week we learned to loop,
string and combine variables into basicly anything we wanted.
As if! :P

Bonnie Lincicome © 2010 All Rights Reserved
This page was last updated on December 14, 2008 07:05:39
Source Code for Random Images
<?php
$images = array('image1','image2', 'image3', 'image4', 'image5', 'image6');
$i =rand(0, count($images)-1); //do NOT change.
$arrayImage = "images/{$images[$i]}.jpg"// change image folder path here if necessary
?>
<?php $siteName = 'LzyDaz Designs<br /><em><span class="white-text">www.lzydaz.com</span></em>'; ?>
<?php include('includes/arrayImage.php'); ?>
<?php $currentWeek="week2"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Week Two</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link href="common/site.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="head">
<div id="rand-images">
<img src="<?php echo $arrayImage; ?>" alt="random image" />
</div><!--close #rand-images-->
<p><?php echo $siteName; ?></p>
</div><!--close #head-->
<div id="wrap">
<div id="content">
<div id="navcontainer">
<ul>
<li><a href="week2/game.php" title="Dice Game">Game</a></li>
<li><a href="week2/calculations.php" title="Super Sale!">Sale</a></li>
<li class="last"><a href="week2/gallery.php" title="Photos">Gallery</a></li>
</ul>
</div><!-- close navcontainer -->
<h1>PHP 101 Week Two</h1>
<p class="center"><em>This week we learned to loop,<br />
string and combine variables into basicly anything we wanted.<br/>
As if! :P</em></p>
<p class="center"><img src="images/winter.jpg" height="180" width="300" alt="Winter" /></p>
<div id="bar-nav">
<?php include($_SERVER['DOCUMENT_ROOT'] . '/lvs/php101/includes/bar-nav.php'); ?>
</div><!--close bar-nav-->
</div><!--close #content-->
</div><!--close #wrap-->
<div id="foot">
<?php include($_SERVER['DOCUMENT_ROOT'] . '/lvs/php101/includes/copyright.php'); ?>
</div><!--close #foot-->
<div id="source">
<?php echo phpversion(); ?>
<hr />
<p>Source Code for Random Images</p>
<?php show_source('includes/arrayImage.php'); ?>
<hr />
<?php show_source('week2.php'); ?>
</div><!--close #source-->
</body>
</html>