Ignore:
Timestamp:
Nov 20, 2009, 3:17:04 PM (14 years ago)
Author:
nikrou
Message:

Feature 1244 resolved
Replace all mysql functions in core code by ones independant of database engine

Fix small php code synxtax : hash must be accessed with [ ] and not { }.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/picture_rate.inc.php

    r4265 r4325  
    3838  WHERE element_id = '.$picture['current']['id'].'
    3939;';
    40     $row = mysql_fetch_assoc(pwg_query($query));
     40    $row = pwg_db_fetch_assoc(pwg_query($query));
    4141  }
    4242  else
     
    6868
    6969      $result = pwg_query($query);
    70       if (mysql_num_rows($result) > 0)
     70      if (pwg_db_num_rows($result) > 0)
    7171      {
    72         $row = mysql_fetch_assoc($result);
     72        $row = pwg_db_fetch_assoc($result);
    7373        $user_rate = $row['rate'];
    7474      }
Note: See TracChangeset for help on using the changeset viewer.