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/calendar_monthly.class.php

    r4265 r4325  
    232232  $result = pwg_query($query);
    233233  $items=array();
    234   while ($row = mysql_fetch_assoc($result))
     234  while ($row = pwg_db_fetch_assoc($result))
    235235  {
    236236    $y = substr($row['period'], 0, 4);
     
    284284  $result = pwg_query($query);
    285285  $items=array();
    286   while ($row = mysql_fetch_assoc($result))
     286  while ($row = pwg_db_fetch_assoc($result))
    287287  {
    288288    $m = (int)substr($row['period'], 0, 2);
     
    334334  $items=array();
    335335  $result = pwg_query($query);
    336   while ($row = mysql_fetch_assoc($result))
     336  while ($row = pwg_db_fetch_assoc($result))
    337337  {
    338338    $d = (int)$row['period'];
     
    352352    unset ( $page['chronology_date'][CDAY] );
    353353
    354     $row = mysql_fetch_assoc(pwg_query($query));
     354    $row = pwg_db_fetch_assoc(pwg_query($query));
    355355    $items[$day]['tn_url'] = get_thumbnail_url($row);
    356356    $items[$day]['file'] = $row['file'];
Note: See TracChangeset for help on using the changeset viewer.