Changeset 587 for trunk/admin/picture_modify.php
- Timestamp:
- Oct 30, 2004, 5:42:29 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/picture_modify.php
r579 r587 83 83 $query.= ' WHERE id = '.$_GET['image_id']; 84 84 $query.= ';'; 85 mysql_query($query);85 pwg_query($query); 86 86 // make the picture representative of a category ? 87 87 $query = ' … … 91 91 AND image_id = '.$_GET['image_id'].' 92 92 ;'; 93 $result = mysql_query($query);93 $result = pwg_query($query); 94 94 while ($row = mysql_fetch_array($result)) 95 95 { … … 103 103 $query.= ' WHERE id = '.$row['category_id']; 104 104 $query.= ';'; 105 mysql_query($query);105 pwg_query($query); 106 106 } 107 107 // if the user ask this picture to be not any more the representative, … … 115 115 WHERE id = '.$row['category_id'].' 116 116 ;'; 117 mysql_query($query);117 pwg_query($query); 118 118 } 119 119 } … … 134 134 WHERE id = '.$_POST['associate'].' 135 135 ;'; 136 if (mysql_num_rows( mysql_query($query)) == 0)136 if (mysql_num_rows(pwg_query($query)) == 0) 137 137 array_push($errors, $lang['cat_unknown_id']); 138 138 } … … 148 148 ('.$_POST['associate'].','.$_GET['image_id'].') 149 149 ;'; 150 mysql_query($query);150 pwg_query($query); 151 151 $associate_or_dissociate = true; 152 152 update_category($_POST['associate']); … … 159 159 WHERE image_id = '.$_GET['image_id'].' 160 160 ;'; 161 $result = mysql_query($query);161 $result = pwg_query($query); 162 162 while ($row = mysql_fetch_array($result)) 163 163 { … … 169 169 AND category_id = '.$row['category_id'].' 170 170 ;'; 171 mysql_query($query);171 pwg_query($query); 172 172 $associate_or_dissociate = true; 173 173 update_category($row['category_id']); … … 186 186 WHERE id = '.$_GET['image_id'].' 187 187 ;'; 188 $row = mysql_fetch_array( mysql_query($query));188 $row = mysql_fetch_array(pwg_query($query)); 189 189 190 190 if (empty($row['name'])) … … 217 217 AND category_id = id 218 218 ;'; 219 $result = mysql_query($query);219 $result = pwg_query($query); 220 220 $categories = ''; 221 221 while ($cat_row = mysql_fetch_array($result)) … … 287 287 $query = 'SELECT COUNT(id) AS nb_total_categories'; 288 288 $query.= ' FROM '.CATEGORIES_TABLE.';'; 289 $row = mysql_fetch_array( mysql_query($query));289 $row = mysql_fetch_array(pwg_query($query)); 290 290 if ($row['nb_total_categories'] < $conf['max_LOV_categories']) 291 291 {
Note: See TracChangeset
for help on using the changeset viewer.