Changeset 24 for trunk/www/form.php
- Timestamp:
- Jun 12, 2009, 11:40:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/form.php
r21 r24 82 82 83 83 $DbResult = $Database->query('SELECT T.* FROM '.$this->Definition['Table'].' AS T WHERE T.Id='.$Id); 84 $DbRow = $DbResult->fetch_assoc();84 if($DbResult->num_rows > 0) $DbRow = $DbResult->fetch_assoc(); 85 85 foreach($this->Definition['Items'] as $Index => $Item) 86 86 { 87 87 if($Item['Type'] != 'Hidden') 88 $this->Values[$Index] = $DbRow[$Index]; 88 if($DbResult->num_rows > 0) $this->Values[$Index] = $DbRow[$Index]; 89 else $this->Values[$Index] = ''; 89 90 } 91 return($DbResult->num_rows > 0); 90 92 } 91 93
Note:
See TracChangeset
for help on using the changeset viewer.