Changeset 179 for trunk/forms.php
- Timestamp:
- Mar 24, 2009, 10:25:21 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/forms.php
r148 r179 140 140 } 141 141 } 142 $this->Values['Id'] = $Id; 143 $DbResult = $Database->replace($this->Definition['Table'], $this->Values); 142 if($Id == 0) 143 { 144 $this->Values['Id'] = $Id; 145 $DbResult = $Database->replace($this->Definition['Table'], $this->Values); 146 } else 147 $DbResult = $Database->update($this->Definition['Table'], 'Id='.$Id, $this->Values); 144 148 //echo($Database->LastQuery); 145 149 }
Note:
See TracChangeset
for help on using the changeset viewer.