Example #1
0
	<form action="includes/addbrick.php" method="POST">
	<label for="brickTitle">What is your brick Title</label><br>
		<input id="brickTitle"name="brickTitle" placeholder="please only enter one brick at this time" type="text"><br>
		<label for="brickContent">Description</label><br>
		<textarea name="brickContent" id="brickContent" cols="30" rows="10"></textarea><br>
		<input type="hidden" name="hidden" id="hidden">
		<button id="submit" type="submit">Submit</button>
	</form>
</div>
	<div class="wall">
<?php 
$database = new Database();
/*
get the result of the query and store it so it is easier for displaying
*/
$result = $database->retreiveBricks();
/*
for each value in the array display as a brick
*/
?>
<div class="wall">
<?php 
echo $wallDisplay = $database->displayBircks($result);
// $arr is now array(2, 4, 6, 8)
unset($value);
// break the reference with the last element
?>
</div>

	</div>
</body>