Changeset 244
- Timestamp:
- Jul 12, 2009, 1:41:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/action.php
r216 r244 110 110 echo ($Table.' '); 111 111 112 $sql = 'SELECT ID,entry as entry_tran, (SELECT ID FROM '.$Table.' WHERE Language = 0 AND entry = entry_tran LIMIT 1) as ID_orig FROM '.$Table.' WHERE (Language <> 0) AND (Take = 0)'; 112 $sql = 'SELECT ID,entry as entry_tran, Take, 113 (SELECT ID FROM '.$Table.' WHERE Language = 0 AND entry = entry_tran LIMIT 1) as ID_orig 114 FROM '.$Table.' as tran WHERE (Language <> 0) AND ((Take = 0) OR (ID = Take) OR NOT EXISTS(SELECT 1 FROM '.$Table.' WHERE ID = tran.Take))'; 113 115 114 116 $ID = $Database->SQLCommand($sql);
Note:
See TracChangeset
for help on using the changeset viewer.