<?php
//set variables to connect to the database
$hostName = "(FILL IN HOSTNAME FOR DB)";
$userName = "(FILL IN USERNAME FOR DB)";
$password = "(FILL IN PASSWORD FOR DB)";
$dbName = "(FILL IN DB NAME)";
// make connection to database 
mysql_connect($hostName, $userName, $password) or die( "Unable to connect to host $hostName");
mysql_select_db($dbName) or die("Unable to select database $dbName");
// We are posting our request so we need to catch it.
$posted_variable = $_POST['posted_variable'];
// The content to show is determined by the $posted_variable integer
switch($posted_variable)
{
//the cases are numbered assuming that $posted_variable is an integer
	case 1:
	echo "1";
	break;
	case 2:
	echo "2";
	break;
	case 3:
	echo "3";
	break;
	case 4:
	echo "4";
	break;
	case 5:
	echo "5";
	break;
	case 6:
	echo "6";
	break;
	case 7:
	echo "7";
	break;
	case 8:
	echo "8";
	break;
	case 9:
	echo "9";
	break;
	case 10:
	echo "10";
	break;
	default:
	// This default case catches any $posted_variable value that does not have a case
	echo "N/A";
}
?>