irm-1.6-b3/include/lookups.class.php
//  string valueName: name of lookup value to add
string valueName: name of lookup value to add
string valueName : name of lookup value to add
function addValue($valueName)
		{
			if ($this->lookupId)
			{
				$DB = Config::Database();
				if (!in_array($valueName, $this->lookupValues))
				{
					$sql = "INSERT INTO lookup_data (lookup, value) VALUES ('".$this->lookupId."', '$valueName')";
					$DB->query($sql);
				}
			}
		}
function addValue ( $ valueName ) { if ( $ this -> lookupId ) { $ DB = Config :: Database ( ) ; if ( ! in_array ( $ valueName , $ this -> lookupValues ) ) { $ sql = " INSERT INTO lookup_data (lookup, value) VALUES (' " . $ this -> lookupId . " ', ' $ valueName ') " ; $ DB -> query ( $ sql ) ; } } }
string valueName: name of lookup value to add
string valueName : name of lookup value to add