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

    r4265 r4325  
    7676$image_ids = array();
    7777
    78 while ($row = mysql_fetch_assoc($result))
     78while ($row = pwg_db_fetch_assoc($result))
    7979{
    8080  $row['is_child_date_last'] = @$row['max_date_last']>@$row['date_last'];
     
    109109;';
    110110      $subresult = pwg_query($query);
    111       if (mysql_num_rows($subresult) > 0)
     111      if (pwg_db_num_rows($subresult) > 0)
    112112      {
    113         list($image_id) = mysql_fetch_row($subresult);
     113        list($image_id) = pwg_db_fetch_row($subresult);
    114114      }
    115115    }
     
    137137  ;';
    138138      $subresult = pwg_query($query);
    139       if (mysql_num_rows($subresult) > 0)
     139      if (pwg_db_num_rows($subresult) > 0)
    140140      {
    141         list($image_id) = mysql_fetch_row($subresult);
     141        list($image_id) = pwg_db_fetch_row($subresult);
    142142      }
    143143    }
     
    179179;';
    180180    $result = pwg_query($query);
    181     while ($row = mysql_fetch_assoc($result))
     181    while ($row = pwg_db_fetch_assoc($result))
    182182    {
    183183      $dates_of_category[ $row['category_id'] ] = array(
     
    203203;';
    204204  $result = pwg_query($query);
    205   while ($row = mysql_fetch_assoc($result))
     205  while ($row = pwg_db_fetch_assoc($result))
    206206  {
    207207    $thumbnail_src_of[$row['id']] = get_thumbnail_url($row);
Note: See TracChangeset for help on using the changeset viewer.