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/functions_notification.inc.php

    r4265 r4325  
    146146    $query = 'SELECT count(distinct '.$field_id.') as CountId
    147147'.$query;
    148     list($count) = mysql_fetch_row(pwg_query($query));
     148    list($count) = pwg_db_fetch_row(pwg_query($query));
    149149    return $count;
    150150
     
    179179    $infos = array();
    180180
    181     while ($row = mysql_fetch_assoc($result))
     181    while ($row = pwg_db_fetch_assoc($result))
    182182    {
    183183      array_push($infos, $row);
     
    449449  $result = pwg_query($query);
    450450  $dates = array();
    451   while ($row = mysql_fetch_assoc($result))
     451  while ($row = pwg_db_fetch_assoc($result))
    452452  {
    453453    array_push($dates, $row);
     
    469469      $dates[$i]['elements'] = array();
    470470      $result = pwg_query($query);
    471       while ($row = mysql_fetch_assoc($result))
     471      while ($row = pwg_db_fetch_assoc($result))
    472472      {
    473473        array_push($dates[$i]['elements'], $row);
     
    489489      $dates[$i]['categories'] = array();
    490490      $result = pwg_query($query);
    491       while ($row = mysql_fetch_assoc($result))
     491      while ($row = pwg_db_fetch_assoc($result))
    492492      {
    493493        array_push($dates[$i]['categories'], $row);
Note: See TracChangeset for help on using the changeset viewer.