Changeset 28 for lists/SystemListItem.php
- Timestamp:
- Dec 8, 2008, 11:06:23 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lists/SystemListItem.php
r27 r28 7 7 global $Database; 8 8 9 $Database->query('UPDATE SystemListItem AS Table1 SET Sequence = (SELECT COUNT(*) FROM (SELECT * FROM SystemListItem) AS Table2 WHERE ( Table1.ItemId = Table2.ItemId) AND ((Table2.Sequence < Table1.Sequence) OR ((Table1.Sequence = Table2.Sequence) AND (Table2.Id < Table1.Id))))');9 $Database->query('UPDATE SystemListItem AS Table1 SET Sequence = (SELECT COUNT(*) FROM (SELECT * FROM SystemListItem) AS Table2 WHERE ((Table2.Sequence < Table1.Sequence) OR ((Table1.Sequence = Table2.Sequence) AND (Table2.Id < Table1.Id))))'); 10 10 } 11 11 … … 15 15 16 16 //print_r($Parameters); 17 $DbResult = $Database->query('SELECT DbDataType FROM SystemType WHERE I temId='.$Parameters['Type'].' ORDER BY Id DESC LIMIT 1');17 $DbResult = $Database->query('SELECT DbDataType FROM SystemType WHERE Id='.$Parameters['Type']); 18 18 //echo($Database->LastQuery); 19 19 $DbRow = $DbResult->fetch_assoc(); 20 $DbResult = $Database->query('SELECT TableName FROM SystemList WHERE I temId='.$Parameters[$Parameters['Column']].' ORDER BY Id DESC LIMIT 1');20 $DbResult = $Database->query('SELECT TableName FROM SystemList WHERE Id='.$Parameters[$Parameters['Column']]); 21 21 //echo($Database->LastQuery); 22 22 $DbRow2 = $DbResult->fetch_assoc();
Note:
See TracChangeset
for help on using the changeset viewer.