Skip to content
This repository
tree: 7a57f32780
Fetching contributors…

Cannot retrieve contributors at this time

file 14 lines (13 sloc) 0.435 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<?php
/* Need something to fetch IEM Properties */
include_once("$rootpath/include/database.inc.php");

function get_iemprop($propname){
  $dbconn = iemdb("mesosite");
  $rs = pg_prepare($dbconn, "SELECT321", "SELECT * from properties where
propname = $1");
  $rs = pg_execute($dbconn, "SELECT321", Array($propname));
  if (pg_num_rows($rs) < 1){ return null; }
  $row = pg_fetch_array($rs,0);
  return $row["propvalue"];
}
?>
Something went wrong with that request. Please try again.