prepare($sql); $stmt->bind_param("s", $_SESSION['employee_name']); $stmt->execute(); $result = $stmt->get_result(); if ($result->num_rows > 0) { ?> prepare($update_sql); $update_stmt->bind_param("s", $_SESSION['employee_name']); $update_stmt->execute(); $stmt->close(); $update_stmt->close(); ?>