prepare($sql); // Bind the parameters $stmt->bindParam(':phone', $phone); $stmt->bindParam(':note', $note); $stmt->bindParam(':editor', $editor); $stmt->execute(); if ($stmt->rowCount() > 0) { // Print a success message printSuccess($message = "note inserted successfully"); } else { // Print a failure message printFailure($message = "Failed to insert note"); } ?>