prepare($sql); $stmt->execute(); $row = $stmt->fetch(PDO::FETCH_ASSOC); echo json_encode([ "status" => "success", "data" => $row ]); ?>