Ignore:
Timestamp:
Nov 15, 2009, 1:26:09 PM (14 years ago)
Author:
nikrou
Message:

Feature 1241 resolved. replace mysql_fetch_array by mysql_fetch_assoc for small php code improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/picture_modify.php

    r3390 r4265  
    176176  WHERE id = '.$_GET['image_id'].'
    177177;';
    178 $row = mysql_fetch_array(pwg_query($query));
     178$row = mysql_fetch_assoc(pwg_query($query));
    179179
    180180$storage_category_id = null;
     
    325325$result = pwg_query($query);
    326326
    327 while ($row = mysql_fetch_array($result))
     327while ($row = mysql_fetch_assoc($result))
    328328{
    329329  $name =
     
    418418  array_push($associateds, $storage_category_id);
    419419}
    420 while ($row = mysql_fetch_array($result))
     420while ($row = mysql_fetch_assoc($result))
    421421{
    422422  array_push($associateds, $row['id']);
Note: See TracChangeset for help on using the changeset viewer.