<?php include dirname(__FILE__) . '/../classes/business_function.php'; Business_Function::remove_business_function($_POST['Business_Function_ID'], $_POST['Database_ID']);
<h3>Recent Items</h3> <ul> <?php for ($i = 0; $i <= sizeof($_COOKIE['recently_viewed']) - 1; $i++) { echo stripslashes($_COOKIE['recently_viewed'][$i]); } ?> </ul> <?php } ?> <h3>Business Functions</h3> <ul> <?php //get all databases $all_business_functions = Business_Function::get_all_business_functions(); while ($business_function = mysqli_fetch_assoc($all_business_functions)) { ?> <li><a href="business_functions.php?business_function_id=<?php echo $business_function['Business_Function_ID']; ?> "><?php echo $business_function['Business_Function_Name']; ?> </a><br /> <?php } ?> </ul> </div> <div class="span6">
<?php include '../classes/business_function.php'; $error = Business_Function::add_business_function($_POST['Business_Function_Name'], $_POST['Database_ID']); //if error (return nothing) if ($error != '1') { exit; } include '../include/database_business_functions.php';