$thisStar = $_GET['star'];
// Get a file into an array.
$lines = file('baseballImages.txt');
function loadLinks()
{
$theStars ="";
// Loop through our array,
foreach ($GLOBALS['lines'] as $line_num => $line)
{
$tok = strtok($line, " ");
$tok = strtok(" ");
$pos = strpos($theStars, $tok);
if($pos === false)
{
$theStars = $theStars." ".$tok;
print("
");
print(" ");
print(" ".$tok."");
print(" | ");
print("
");
}
}
}
function loadPics($thisOne)
{
// Loop through our array,
foreach ($GLOBALS['lines'] as $line_num => $line)
{
$pos = strpos($line, $thisOne);
if($pos != false)
{
$tok = strtok($line, " ");
print(" \n");
print(" \n");
print(" \n");
print(" | \n");
print("
\n");
}
}
}
?>
Highly Evolved Monkey
|
|
|
if($thisStar == "")
{
print("Click on the Zooka stars name below to see shots from the game on 25th Jan, 2006 \n");
print(" \n");
loadLinks();
}
else
{
print(" \n");
print(" \n");
if($thisStar == "Team")
{
print(" The ".$thisStar." in action \n");
}
else
{
print(" ".$thisStar." in action \n");
}
print(" | \n");
print(" \n");
loadPics($thisStar);
}
?>
|