Changeset 4325 for trunk/include/functions_category.inc.php
- Timestamp:
- Nov 20, 2009, 3:17:04 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_category.inc.php
r4265 r4325 102 102 $cats = array(); 103 103 $selected_category = isset($page['category']) ? $page['category'] : null; 104 while ($row = mysql_fetch_assoc($result))104 while ($row = pwg_db_fetch_assoc($result)) 105 105 { 106 106 $child_date_last = @$row['max_date_last']> @$row['date_last']; … … 166 166 WHERE id = '.$id.' 167 167 ;'; 168 $cat = mysql_fetch_assoc(pwg_query($query));168 $cat = pwg_db_fetch_assoc(pwg_query($query)); 169 169 if (empty($cat)) 170 170 return null; … … 241 241 $query.= ' FROM '.CATEGORIES_TABLE.' WHERE id = '.$category_id; 242 242 $query.= ';'; 243 $row = mysql_fetch_assoc( pwg_query( $query ) );243 $row = pwg_db_fetch_assoc( pwg_query( $query ) ); 244 244 $uppercats = $row['uppercats']; 245 245 } … … 252 252 $query.= ';'; 253 253 $result = pwg_query( $query ); 254 while( $row = mysql_fetch_assoc( $result ) )254 while( $row = pwg_db_fetch_assoc( $result ) ) 255 255 { 256 256 $database_dirs[$row['id']] = $row['dir']; … … 276 276 AND c.id = '.$category_id.' 277 277 ;'; 278 $row = mysql_fetch_assoc(pwg_query($query));278 $row = pwg_db_fetch_assoc(pwg_query($query)); 279 279 return $row['galleries_url']; 280 280 } … … 345 345 if (!empty($result)) 346 346 { 347 while ($row = mysql_fetch_assoc($result))347 while ($row = pwg_db_fetch_assoc($result)) 348 348 { 349 349 array_push($categories, $row); … … 385 385 386 386 $subcats = array(); 387 while ($row = mysql_fetch_assoc($result))387 while ($row = pwg_db_fetch_assoc($result)) 388 388 { 389 389 array_push($subcats, $row['id']); … … 534 534 LIMIT 1'; 535 535 536 $show_link = mysql_num_rows(pwg_query($query)) <> 0;536 $show_link = pwg_db_num_rows(pwg_query($query)) <> 0; 537 537 } 538 538 }
Note: See TracChangeset
for help on using the changeset viewer.