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

Management Meeting Bingo

Refresh this page to get a different bingo card. Printer-friendly card.

Rules of the game.

When the speaker uses a buzz word or phrase on your card, put
a ring round the matching word or phrase.

The first player to complete a straight horizontal, vertical or
diagonal row of five words wins the game by standing up and
calling "Bingo!"

Homework

Modify the game for use in school or college lessons.

 

HARDWARE RUN THAT UP THE FLAGPOLE TWENTYFOUR SEVEN CROSS-PRODUCT RISK REWARD RATIO
PUSH THE ENVELOPE INCREASE PRODUCTIVITY DIVERSITY YOU GET THE IDEA MENTAL MODELS
PARADIGM EMPOWER (OR EMPOWERMENT) ENTERPRISE-CLASS ENTERPRISE-CLASS PROJECTION
GAME PLAN RUN THAT UP THE FLAGPOLE MOBILITY SYSTEMATIZED EMPOWER (OR EMPOWERMENT)
MOBILITY TOTAL TIME-PHASE PROGRAMME MANAGEMENT BEST PRACTICE

 

 


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

<?php
  include "code.php";

// -----------------------------------------------------------------

function loadAnArray(&$anArray)    // & pass parameter by reference
{
  $fp = fopen("mmbingo.txt", "r");

  while (!feof($fp))
  {
    $in = fgets($fp, 4094);
    $anArray[] = trim($in);
  }

  fclose ($fp);
}

// -----------------------------------------------------------------

// ---- MAIN PROGRAM -----------------------------------------------

loadAnArray($buzzWords);

// -----------------------------------------------------------------

?>

<html>
<head>
<title>Management Meeting Bingo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="style.css" rel="stylesheet" type="text/css">
</head>

<body>

<table border="1" cellspacing="0" cellpadding="4">
  <tr>
    <td valign="top">      
      <?php include "nav.php"; ?>
    </td>
    <td valign="top"> 
      <h1>Management Meeting Bingo</h1>
      <p>Refresh this page to get a different bingo card. <a href="11mmbingoprint.php">Printer-friendly</a> 
        <strong>card.</strong></p>
      <h2>Rules of the game.</h2>
      <p>When the speaker uses a buzz word or phrase on your card, put <br>
        a ring round the matching word or phrase.</p>
      <p>The first player to complete a straight horizontal, vertical or <br>
        diagonal row of five words wins the game by standing up and <br>
        calling &quot;Bingo!&quot;</p>
      <h3>Homework</h3>
      <p>Modify the game for use in school or college lessons.</p>
      <p>&nbsp;</p>
      <?php
        echo "<table height=\"250\" width=\"95%\"";
	echo "border=\"1\" cellpadding=\"4\" cellspacing=\"0\">\n";
        for ($row = 0; $row < 5; $row++)    // FIVE ROWS
	{
          echo "<tr>\n";
          for ($col = 0; $col < 5; $col++)    // FIVE COLUMNS
	  {
            echo "<td>";
            echo $buzzWords[rand(0, count($buzzWords) - 1)];
            echo "</td>\n";
	  }
          echo "</tr>\n";
	}
        echo "</table>\n\n";
	echo "<p>&nbsp;</p>\n<p>&nbsp;</p>\n\n";
	
        dump_page(basename($_SERVER[SCRIPT_FILENAME]));
      ?>
    </td>
  </tr>
</table>

</body>
</html>