Print.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Assignment042</title>
<style>
table
{
margin:auto;
}
td
{
border: 1px solid black;
}
</style>
</head>
<body>
<p>Mr.G likes to spend all the money they give him on his friends. When he goes to the mall he spends at least 200 dollars, but once he has only 120 dollars, he buys himself some shoes.
</p>
<table>
<?php
$dollars = 200;
Do
{
echo "<tr><td>";
echo "Hey, friend, I got some cash! ";
echo " I have ".$dollars." dollars!";
echo "</tr></td>";
$dollars=$dollars-10;
}
while ($dollars > 120) ;
if ($dollars == 120)
{
echo "<tr><td>";
echo "Yeah, time for some shoes!";
echo "</td></tr>";
}
?>
</table>
</body>
</html>