Changeset 46 for trunk/www/types/PointerOneToOne.php
- Timestamp:
- Jun 19, 2009, 9:41:07 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/types/PointerOneToOne.php
r22 r46 28 28 $Output = '<select name="'.$Item['Name'].'">'; 29 29 $Type = $TypeDefinitionList[$Item['Type']]; 30 $DbResult = $Database->query('SELECT '.$Type['Parameters']['Name'].' AS Name,'.$Type['Parameters']['Id'].' AS Id FROM `'.$Type['Parameters']['Table'].'`'); 30 if(array_key_exists('Condition', $Type['Parameters'])) $Where = ' WHERE '.$Type['Parameters']['Condition']; 31 else $Where = ''; 32 $DbResult = $Database->query('SELECT '.$Type['Parameters']['Name'].' AS Name,'.$Type['Parameters']['Id'].' AS Id FROM `'.$Type['Parameters']['Table'].'`'.$Where.' ORDER BY Name DESC'); 31 33 while($DbRow = $DbResult->fetch_assoc()) 32 34 {
Note:
See TracChangeset
for help on using the changeset viewer.