ODBC Driver for SurveyMonkey

Build 23.0.8839

データのクエリ

接続 後、SQL ステートメントを実行して結果を取得できます。

SELECT プロシージャ

odbc_exec を使用してクエリを実行できます。これにより、結果を読むために使用できるリソースが返されます。

$stmt = odbc_exec($cnx, "SELECT RespondentId, ChoiceId FROM MySurvey_Responses WHERE ChoiceText = 'blue'");

結果の反復処理

odbc_fetch_array を使用して次の行を配列としてフェッチできます。

while ($row = odbc_fetch_array($stmt)) {
    echo "RespondentId = ", $row["RespondentId"], "\n";
    echo "ChoiceId = ", $row["ChoiceId"], "\n";
}

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 23.0.8839