prepare($sql); $stmt->execute([$id, $name, $education, $site, $phone, $created_at, $status]); // Check if the query successfully inserted the record if ($stmt->rowCount() > 0) { // If a row was inserted, print success jsonSuccess($message = "Employee record added successfully"); } else { // If no rows were inserted, print failure jsonError($message = "Failed to add employee record"); } ?>