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/admin/cat_modify.php

    r4265 r4325  
    194194  WHERE id = '.$_GET['cat_id'].'
    195195;';
    196 $category = mysql_fetch_assoc( pwg_query( $query ) );
     196$category = pwg_db_fetch_assoc( pwg_query( $query ) );
    197197// nullable fields
    198198foreach (array('comment','dir','site_id', 'id_uppercat') as $nullable)
     
    211211  LIMIT 1';
    212212$result = pwg_query($query);
    213 $category['has_images'] = mysql_num_rows($result)>0 ? true : false;
     213$category['has_images'] = pwg_db_num_rows($result)>0 ? true : false;
    214214
    215215// Navigation path
     
    374374  WHERE id = '.$category['representative_picture_id'].'
    375375;';
    376     $row = mysql_fetch_assoc(pwg_query($query));
     376    $row = pwg_db_fetch_assoc(pwg_query($query));
    377377    $src = get_thumbnail_url($row);
    378378    $url = get_root_url().'admin.php?page=picture_modify';
     
    462462
    463463    $result = pwg_query($query);
    464     if (mysql_num_rows($result) > 0)
     464    if (pwg_db_num_rows($result) > 0)
    465465    {
    466       $element = mysql_fetch_assoc($result);
     466      $element = pwg_db_fetch_assoc($result);
    467467
    468468      $img_url  = '<a href="'.
     
    512512  WHERE id = '.$_POST['group'].'
    513513;';
    514   list($group_name) = mysql_fetch_row(pwg_query($query));
     514  list($group_name) = pwg_db_fetch_row(pwg_query($query));
    515515 
    516516  array_push(
Note: See TracChangeset for help on using the changeset viewer.