Changeset 4325 for trunk/picture.php


Ignore:
Timestamp:
Nov 20, 2009, 3:17:04 PM (15 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/picture.php

    r4265 r4325  
    5858      '.%" ESCAPE "/" LIMIT 1';
    5959  }
    60   if ( ! ( $row = mysql_fetch_assoc(pwg_query($query)) ) )
     60  if ( ! ( $row = pwg_db_fetch_assoc(pwg_query($query)) ) )
    6161  {// element does not exist
    6262    page_not_found( 'The requested image does not exist',
     
    9494          ).'
    9595  LIMIT 1';
    96       if ( mysql_num_rows( pwg_query($query) ) == 0 )
     96      if ( pwg_db_num_rows( pwg_query($query) ) == 0 )
    9797      {
    9898        access_denied();
     
    388388$result = pwg_query($query);
    389389$related_categories = array();
    390 while ($row = mysql_fetch_assoc($result))
     390while ($row = pwg_db_fetch_assoc($result))
    391391{
    392392  array_push($related_categories, $row);
     
    416416$result = pwg_query($query);
    417417
    418 while ($row = mysql_fetch_assoc($result))
     418while ($row = pwg_db_fetch_assoc($result))
    419419{
    420420  if (isset($page['previous_item']) and $row['id'] == $page['previous_item'])
     
    768768;';
    769769  $result = pwg_query($query);
    770   $row = mysql_fetch_assoc($result);
     770  $row = pwg_db_fetch_assoc($result);
    771771
    772772  if ($row['nb_fav'] == 0)
Note: See TracChangeset for help on using the changeset viewer.