當前位置: 首頁>>代碼示例>>PHP>>正文


PHP table::execQuery方法代碼示例

本文整理匯總了PHP中table::execQuery方法的典型用法代碼示例。如果您正苦於以下問題:PHP table::execQuery方法的具體用法?PHP table::execQuery怎麽用?PHP table::execQuery使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在table的用法示例。


在下文中一共展示了table::execQuery方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: table

<?php

$_REQUEST['schema'] = "svendborg";
$_REQUEST['formid'] = "115770004835770";
$table = new table("{$_REQUEST['schema']}.tforms{$_REQUEST['formid']}_join");
$table->execQuery("set client_encoding='UFT8'", "PDO");
$query = "SELECT {$_REQUEST['schema']}.tforms{$_REQUEST['formid']}_join.*,public.save_check.ok FROM {$_REQUEST['schema']}.tforms{$_REQUEST['formid']}_join LEFT JOIN public.save_check ON public.save_check.irowid={$_REQUEST['schema']}.tforms{$_REQUEST['formid']}_join.irowid ORDER by public.save_check.irowid, {$_REQUEST['schema']}.tforms{$_REQUEST['formid']}_join.adresse LIMIT 100000000";
$result = $table->execQuery($query);
$rows = $table->fetchAll($result, "assoc");
//print_r($rows);
開發者ID:netcon-source,項目名稱:MyGeoCloud,代碼行數:10,代碼來源:save_list_c.php

示例2: table

<?php

$table = new table("{$_REQUEST['schema']}.tforms{$_REQUEST['formid']}_join");
$table->execQuery("set client_encoding='UTF8'", "PDO");
$response = $table->getRecords(NULL, "*", "irowid='{$_REQUEST['id']}'");
$row = $response['data'][0];
if (empty($row)) {
    die("empty");
}
//print_r($row);
$checkTable = new table("public.save_check");
$checkTable->execQuery("set client_encoding='UTF8'", "PDO");
$checkResponse = $checkTable->getRecords(NULL, "*", "irowid={$_REQUEST['id']}");
$checkRow = $checkResponse['data'][0];
//print_r($checkRow);
開發者ID:netcon-source,項目名稱:MyGeoCloud,代碼行數:15,代碼來源:table_c.php

示例3: table

include 'libs/FirePHPCore/fb.php';
include 'model/tables.php';
$postgisdb = $parts[3];
$table = new table("vandforsyningsplan.anlaeg_join");
$table->execQuery("set client_encoding='LATIN1'", "PDO");
$response = $table->getRecords(NULL, "*", "id='{$_REQUEST['id']}'");
$row = $response['data'][0];
$response = $table->getRecords(NULL, "id,navn_paa_vandvaerk,html", "overordnet_id='{$row['overordnet_id']}'");
$rowOverordnet = $response['data'];
//print_r($rowOverordnet);
$table = new table("vandforsyningsplan.boringer");
$table->execQuery("set client_encoding='LATIN1'", "PDO");
$response = $table->getRecords(NULL, "*", "plant_id='{$_REQUEST['id']}'");
$rowBoringer = $response['data'];
//print_r($rowBoringer);
$table = new table("vandforsyningsplan.maengde");
$table->execQuery("set client_encoding='LATIN1'", "PDO");
$table->execQuery("set datestyle TO SQL,DMY", "PDO");
//$response = $table->getRecords(NULL,"*","plantid='{$_REQUEST['id']}' AND startdate::date>='01/01/2010'");
$response = $table->getRecords(NULL, "*", "plantid='{$row['overordnet_id']}'");
$rowMaengde = $response['data'];
$i = 0;
foreach ($rowMaengde as $value) {
    if (is_int($i / 2)) {
        $year[] = $value['time'];
    } else {
        $year[] = "";
    }
    $amount[] = $value['amount'];
    $i++;
}
開發者ID:netcon-source,項目名稱:MyGeoCloud,代碼行數:31,代碼來源:table_c.php

示例4: table

<?php

include "inc/lp_fields.php";
include "inc/lp_ref.php";
$table = new table("lokalplaner.lpplandk2_join");
$table->execQuery("set client_encoding='LATIN1'", "PDO");
$response = $table->getRecords(NULL, "*", "planid='{$_REQUEST['planid']}'");
$row = $response['data'][0];
$table = new table("lokalplaner.lpdelplandk2_join");
$table->execQuery("set client_encoding='LATIN1'", "PDO");
$response = $table->getRecords(NULL, "*", "lokplan_id='{$_REQUEST['planid']}'");
$rowsLpDel = $response['data'];
if (!is_array($rowsLpDel)) {
    $rowsLpDel = array();
}
//print_r($rowsLpDel);
開發者ID:netcon-source,項目名稱:MyGeoCloud,代碼行數:16,代碼來源:table_c.php

示例5: table

<?php

include "html_header.php";
include "inc/lp_fields.php";
include "inc/lp_ref.php";
$table = new table("lokalplaner.lpplandk2_join");
$table->execQuery("set client_encoding='latin1'", "PDO");
$response = $table->getRecords(null, "*", "plannr='{$_REQUEST['plannr']}'");
//print_r($response['data'][0]);
$row = $response['data'][0];
if (empty($row)) {
    die;
}
/*
$table = new table("public.lpdelplandk2_join");
$response = $table->getRecords("lokplan_id='{$_REQUEST['planid']}'");
print_r($response['data']);
$rowsLpDel = $response['data'];
*/
$postgisObject = new postgis();
//$postgisObject->execQuery("set client_encoding='latin1'","PG");
$query = "SELECT * FROM lokalplaner.lpdelplandk2_join where lokplan_id='" . $row["planid"] . "' order by delnr";
//echo $query;
$result = $postgisObject->execQuery($query, "PG");
$rowsLpDel = pg_fetch_all($result);
if (!is_array($rowsLpDel)) {
    $rowsLpDel = array();
}
$i = 1;
?>
<!DOCTYPE html>
開發者ID:netcon-source,項目名稱:MyGeoCloud,代碼行數:31,代碼來源:lp_template.php


注:本文中的table::execQuery方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。