$myUser = new MyUser(Hostname, DB - username, password, Database - Name); $myUser->connect(); // start with a new line // get the number of business plan $number_of_business_plan = $myUser->get_number_of_business_plan($user_name); echo "<table width='80%' align='center'>"; echo "<tr>"; echo "<td style='text-align: center; font-size: 36px'>You have " . $number_of_business_plan . " Business Plans</td></tr>"; echo "<tr>"; echo "<td><table width='100%' border='1' cellpadding='1' cellspacing='0'>"; echo "<tr style='text-align: center; font-size: 24px;'>"; echo "<td width='30%'>Name</td>"; echo "<td>Description</td>"; echo "</tr>"; // print out the plan information $business_plan = $myUser->get_business_plan_information($user_name); // echo "<form action='delete_business_plan.php' method='post'>"; for ($i = 0; $i < $number_of_business_plan; $i++) { echo "<tr>"; echo "<td width='30%' style='font-size: 20px; text-align: center;'><a href='BusinessPlan.php?action=" . $business_plan[$i][0] . "'>" . $business_plan[$i][1] . "</a></td>"; echo "<td style='font-size: 18px'>" . $business_plan[$i][2] . "</td></tr>"; } echo "</table></td>"; echo "</tr>"; echo "</table>"; //disconnect the database; $myUser->disconnect(); ?> <form action="add_new_business_plan.php" method="post" >