File "check_construction_id.php"
Full path: /www/ansys/common/check_construction_id.php
File size: 802 B
MIME-type: text/x-php
Charset: utf-8
<?php
$HOST = "192.168.100.153";
$DB = "ansys";
$USER = "postgres";
$PASS = "am#71ZJ*";
$conn = pg_connect("
host = ". $HOST. "
dbname = ". $DB. "
user = ". $USER. "
password= ". $PASS. "
");
$constId = isset($_POST["const_id"]) ? htmlspecialchars($_POST["const_id"]) : "";
if (strcmp($constId, "") != 0)
{
//================================================
// アプリケーションバージョンの取得
// 更新 : 2014/04/11 KMK-Teraoka
//================================================
$selConst = "SELECT const_name FROM apc_common.constructions";
$selConst .= " WHERE const_id='". $constId. "'";
$selConst .= ";";
$rowConst = pg_fetch_array(pg_query($conn, $selConst), 0, PGSQL_ASSOC);
$constName = $rowConst["const_name"];
print $constName. "\n";
}
pg_close($conn);
?>