Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 46542e115b
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (13 sloc) 0.435 kb
<?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"];
}
?>
Jump to Line
Something went wrong with that request. Please try again.