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/permalinks.php

    r3282 r4325  
    100100  LIMIT 1';
    101101  pwg_query($query);
    102   if (mysql_affected_rows()==0)
     102  if (pwg_db_affected_rows()==0)
    103103    array_push($page['errors'], 'Cannot delete the old permalink !');
    104104}
     
    135135$categories=array();
    136136$result=pwg_query($query);
    137 while ( $row=mysql_fetch_assoc($result) )
     137while ( $row = pwg_db_fetch_assoc($result) )
    138138{
    139139  $row['name'] = get_cat_display_name_cache( $row['uppercats'] );
     
    163163$result = pwg_query($query);
    164164$deleted_permalinks=array();
    165 while ( $row=mysql_fetch_assoc($result) )
     165while ( $row = pwg_db_fetch_assoc($result) )
    166166{
    167167  $row['name'] = get_cat_display_name_cache($row['cat_id']);
Note: See TracChangeset for help on using the changeset viewer.