Changeset 154
- Timestamp:
- Mar 12, 2009, 12:22:02 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/action.php
r153 r154 36 36 $ID = $Database->SQLCommand($sql); 37 37 while ($Line = mysql_fetch_assoc($ID)) { 38 $sql = 'UPDATE '.$Table ;38 $sql = 'UPDATE '.$Table.' SET '; 39 39 foreach($Group['Items'] as $Item) { 40 40 $Column_text = addslashes(str_replace($find,$replace,$Line[$Item['Column']])); 41 $sql .= ' SET '.$Item['Column'].' = "'.$Column_text.'"';41 $sql .= ' '.$Item['Column'].' = "'.$Column_text.'",'; 42 42 } 43 $sql = substr($sql,0,strlen($sql)-1); 43 44 $sql .= ' WHERE ID = '.$Line['ID']; 44 45 $Database->SQLCommand($sql);
Note:
See TracChangeset
for help on using the changeset viewer.