if ($inserting) { accede('cg_Autos.php'); } else { denegar('reg_Auto.php'); } } if (isset($_POST[act_Auto])) { $Updating = $objTransaccion->update_Auto($_POST[matricula], $_POST[marca], $_POST[modelo], $_POST[color], $_POST[antiguedad], $_POST[potencia], $_POST[velocidad], $_POST[precio]); if ($Updating) { accede("cd_Auto.php?btn_Query={$_POST['matricula']}"); } else { denegar("cd_Auto.php?btn_Query={$_POST['matricula']}"); } } if (!empty($_GET[del_Auto])) { $Deleting = $objTransaccion->delete_Auto($_GET[del_Auto]); if ($Deleting) { accede('cg_Autos.php'); } else { denegar("cd_Auto.php?btn_Query={$_GET['del_Auto']}"); } } #Push of buttom Empleados.*********** if (isset($_POST['add_Empleado'])) { $Inserting = $objTransaccion->reg_Empleado($_POST['ife'], $_POST['nombre'], $_POST['apellido'], $_POST['direccion'], $_POST['telefono'], $_POST['ciudad']); if ($Inserting) { accede('cg_Empleados.php'); } else { denegar('reg_Empleado.php'); } }