Changeset 4265 for trunk/include
- Timestamp:
- Nov 15, 2009, 1:26:09 PM (15 years ago)
- Location:
- trunk/include
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/calendar_monthly.class.php
r3282 r4265 232 232 $result = pwg_query($query); 233 233 $items=array(); 234 while ($row = mysql_fetch_a rray($result))234 while ($row = mysql_fetch_assoc($result)) 235 235 { 236 236 $y = substr($row['period'], 0, 4); … … 284 284 $result = pwg_query($query); 285 285 $items=array(); 286 while ($row = mysql_fetch_a rray($result))286 while ($row = mysql_fetch_assoc($result)) 287 287 { 288 288 $m = (int)substr($row['period'], 0, 2); … … 334 334 $items=array(); 335 335 $result = pwg_query($query); 336 while ($row = mysql_fetch_a rray($result))336 while ($row = mysql_fetch_assoc($result)) 337 337 { 338 338 $d = (int)$row['period']; -
trunk/include/category_cats.inc.php
r3282 r4265 179 179 ;'; 180 180 $result = pwg_query($query); 181 while ($row = mysql_fetch_a rray($result))181 while ($row = mysql_fetch_assoc($result)) 182 182 { 183 183 $dates_of_category[ $row['category_id'] ] = array( -
trunk/include/functions.inc.php
r3750 r4265 45 45 // columns are 'Field', 'Type' 46 46 $result = pwg_query('desc '.$table); 47 while ($row = mysql_fetch_a rray($result))47 while ($row = mysql_fetch_assoc($result)) 48 48 { 49 49 // we are only interested in the the field given in parameter for the … … 936 936 937 937 $result = pwg_query($query); 938 while ($row = mysql_fetch_a rray($result))938 while ($row = mysql_fetch_assoc($result)) 939 939 { 940 940 array_push($array, $row[$fieldname]); … … 1122 1122 WHERE '.$conf['user_fields']['id'].' = '.$conf['webmaster_id'].' 1123 1123 ;'; 1124 list($email) = mysql_fetch_ array(pwg_query($query));1124 list($email) = mysql_fetch_row(pwg_query($query)); 1125 1125 1126 1126 return $email; … … 1148 1148 } 1149 1149 1150 while ($row = mysql_fetch_a rray($result))1150 while ($row = mysql_fetch_assoc($result)) 1151 1151 { 1152 1152 $conf[ $row['param'] ] = isset($row['value']) ? $row['value'] : ''; … … 1193 1193 1194 1194 $result = pwg_query($query); 1195 while ($row = mysql_fetch_a rray($result))1195 while ($row = mysql_fetch_assoc($result)) 1196 1196 { 1197 1197 $array[ $row[$keyname] ] = $row[$valuename]; … … 1585 1585 // Use MySql date in order to standardize all recent "actions/queries" 1586 1586 list($cache['get_icon']['sql_recent_date']) = 1587 mysql_fetch_ array(pwg_query('select SUBDATE(1587 mysql_fetch_row(pwg_query('select SUBDATE( 1588 1588 CURRENT_DATE,INTERVAL '.$user['recent_period'].' DAY)')); 1589 1589 } -
trunk/include/functions_category.inc.php
r3282 r4265 241 241 $query.= ' FROM '.CATEGORIES_TABLE.' WHERE id = '.$category_id; 242 242 $query.= ';'; 243 $row = mysql_fetch_a rray( pwg_query( $query ) );243 $row = mysql_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_a rray( $result ) )254 while( $row = mysql_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_a rray(pwg_query($query));278 $row = mysql_fetch_assoc(pwg_query($query)); 279 279 return $row['galleries_url']; 280 280 } … … 385 385 386 386 $subcats = array(); 387 while ($row = mysql_fetch_a rray($result))387 while ($row = mysql_fetch_assoc($result)) 388 388 { 389 389 array_push($subcats, $row['id']); -
trunk/include/functions_mail.inc.php
r3938 r4265 352 352 if (!empty($datas)) 353 353 { 354 while ($admin = mysql_fetch_a rray($datas))354 while ($admin = mysql_fetch_assoc($datas)) 355 355 { 356 356 if (!empty($admin['mail_address'])) … … 451 451 { 452 452 $list = array(); 453 while ($row = mysql_fetch_a rray($result))453 while ($row = mysql_fetch_assoc($result)) 454 454 { 455 455 $row['template_theme'] = $row['template']; … … 480 480 { 481 481 $Bcc = array(); 482 while ($row = mysql_fetch_a rray($result))482 while ($row = mysql_fetch_assoc($result)) 483 483 { 484 484 if (!empty($row['mail_address'])) -
trunk/include/functions_notification.inc.php
r3282 r4265 146 146 $query = 'SELECT count(distinct '.$field_id.') as CountId 147 147 '.$query; 148 list($count) = mysql_fetch_ array(pwg_query($query));148 list($count) = mysql_fetch_row(pwg_query($query)); 149 149 return $count; 150 150 … … 179 179 $infos = array(); 180 180 181 while ($row = mysql_fetch_a rray($result))181 while ($row = mysql_fetch_assoc($result)) 182 182 { 183 183 array_push($infos, $row); -
trunk/include/functions_plugins.inc.php
r3282 r4265 239 239 $result = pwg_query($query); 240 240 $plugins = array(); 241 while ($row = mysql_fetch_a rray($result))241 while ($row = mysql_fetch_assoc($result)) 242 242 { 243 243 array_push($plugins, $row); -
trunk/include/functions_search.inc.php
r4261 r4265 459 459 $by_weights=array(); 460 460 $result = pwg_query($query); 461 while ($row = mysql_fetch_a rray($result))461 while ($row = mysql_fetch_assoc($result)) 462 462 { // weight is important when sorting images by relevance 463 463 if ($row['weight']) -
trunk/include/functions_user.inc.php
r3747 r4265 59 59 '.(is_numeric($user_id) ? 'and '.$conf['user_fields']['id'].' != \''.$user_id.'\'' : '').' 60 60 ;'; 61 list($count) = mysql_fetch_ array(pwg_query($query));61 list($count) = mysql_fetch_row(pwg_query($query)); 62 62 if ($count != 0) 63 63 { … … 111 111 FROM '.USERS_TABLE.' 112 112 ;'; 113 list($next_id) = mysql_fetch_ array(pwg_query($query));113 list($next_id) = mysql_fetch_row(pwg_query($query)); 114 114 115 115 $insert = … … 135 135 136 136 $inserts = array(); 137 while ($row = mysql_fetch_a rray($result))137 while ($row = mysql_fetch_assoc($result)) 138 138 { 139 139 array_push … … 250 250 WHERE '.$conf['user_fields']['id'].' = \''.$user_id.'\''; 251 251 252 $row = mysql_fetch_a rray(pwg_query($query));252 $row = mysql_fetch_assoc(pwg_query($query)); 253 253 254 254 while (true) … … 270 270 } 271 271 272 $row = array_merge($row, mysql_fetch_a rray($result));272 $row = array_merge($row, mysql_fetch_assoc($result)); 273 273 274 274 foreach ($row as $key => $value) … … 325 325 WHERE category_id NOT IN ('.$userdata['forbidden_categories'].') 326 326 AND image_id '.$userdata['image_access_type'].' ('.$userdata['image_access_list'].')'; 327 list($userdata['nb_total_images']) = mysql_fetch_ array(pwg_query($query));327 list($userdata['nb_total_images']) = mysql_fetch_row(pwg_query($query)); 328 328 329 329 … … 429 429 $result = pwg_query($query); 430 430 $authorizeds = array(); 431 while ($row = mysql_fetch_a rray($result))431 while ($row = mysql_fetch_assoc($result)) 432 432 { 433 433 array_push($authorizeds, $row['image_id']); … … 441 441 $result = pwg_query($query); 442 442 $favorites = array(); 443 while ($row = mysql_fetch_a rray($result))443 while ($row = mysql_fetch_assoc($result)) 444 444 { 445 445 array_push($favorites, $row['image_id']); … … 482 482 ;'; 483 483 $result = pwg_query($query); 484 while ($row = mysql_fetch_a rray($result))484 while ($row = mysql_fetch_assoc($result)) 485 485 { 486 486 array_push($private_array, $row['id']); … … 524 524 ;'; 525 525 $result = pwg_query($query); 526 while ($row = mysql_fetch_a rray($result))526 while ($row = mysql_fetch_assoc($result)) 527 527 { 528 528 array_push($forbidden_array, $row['id']); -
trunk/include/picture_comment.inc.php
r3488 r4265 94 94 FROM '.COMMENTS_TABLE.' 95 95 WHERE image_id='.$page['image_id']." AND validated = 'true'"; 96 $row = mysql_fetch_a rray( pwg_query( $query ) );96 $row = mysql_fetch_assoc( pwg_query( $query ) ); 97 97 98 98 // navigation bar creation … … 141 141 $result = pwg_query( $query ); 142 142 143 while ($row = mysql_fetch_a rray($result))143 while ($row = mysql_fetch_assoc($result)) 144 144 { 145 145 if (!empty($row['author'])) -
trunk/include/picture_rate.inc.php
r3282 r4265 38 38 WHERE element_id = '.$picture['current']['id'].' 39 39 ;'; 40 $row = mysql_fetch_a rray(pwg_query($query));40 $row = mysql_fetch_assoc(pwg_query($query)); 41 41 } 42 42 else … … 70 70 if (mysql_num_rows($result) > 0) 71 71 { 72 $row = mysql_fetch_a rray($result);72 $row = mysql_fetch_assoc($result); 73 73 $user_rate = $row['rate']; 74 74 }
Note: See TracChangeset
for help on using the changeset viewer.