Example #1
0
 /** Same as getOptionsFromList, except it uses an array of arrays (such as is returned by selectQuery()).  */
 public static function getOptionsFromArray($strTableName, $arrDB, $strValueElement = 'name', $strKeyElement = 'id', $strZeroCaption = 'Please make a selection')
 {
     return clsDB::getOptionsFromList(clsDB::arrayToObjects($strTableName, $arrDB), $strValueElement, $strKeyElement, $strZeroCaption);
 }