Changeset 142 for trunk/save.php
- Timestamp:
- Mar 4, 2009, 7:41:47 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/save.php
r135 r142 32 32 if(array_key_exists($GroupItem['Column'], $_POST)) 33 33 { 34 $Columns .= ', `'.$GroupItem['Column'].'`'; 35 $Values .= ', "'.@$_POST[$GroupItem['Column']].'"'; 34 if ($GroupItem['Column'] <> 'ShortCut') { 35 $Columns .= ', `'.$GroupItem['Column'].'`'; 36 $Values .= ', "'.@$_POST[$GroupItem['Column']].'"'; 37 } 36 38 } 37 39 } … … 57 59 $Line = mysql_fetch_array($Database->SQLCommand('SELECT * FROM '.$Table.' WHERE user='.$UserID.' AND entry = '.$SameTranLine['entry'])); 58 60 if(!$Line) { 61 if ($GroupItem['Column'] <> 'ShortCut') 59 62 $Database->SQLCommand('INSERT INTO `'.$Table.'` (`entry`, '.$Columns.') VALUES ('.$SameTranLine['entry'].','.$Values.')'); 63 else 64 $Database->SQLCommand('INSERT INTO `'.$Table.'` (`entry`, '.$Columns.', `ShortCut`) VALUES ('.$SameTranLine['entry'].','.$Values.',"'.$SameTranLine['ShortCut'].'")'); 60 65 $LastIDs[] = mysql_insert_id(); 61 66 }
Note:
See TracChangeset
for help on using the changeset viewer.