database_define("localhost", "root", "", "teslacoilcontroller", "values"); // Depending on the feature variable, save new commands to the table or print the current command variables. if(isset($_GET["feature"]) && $_GET["feature"] == "save" && isset($_GET["coil"]) && isset($_GET["fan"])){ $tesla_coil->save_data($_GET["coil"], $_GET['fan']); } if(isset($_GET["feature"]) && $_GET["feature"] == "print"){ $tesla_coil->print_data(); } ?>