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/install/upgrade_1.3.1.php

    r4280 r4325  
    4343  FROM '.PREFIX_TABLE.'config
    4444;';
    45 $save = mysql_fetch_assoc(pwg_query($query));
     45$save = pwg_db_fetch_assoc(pwg_query($query));
    4646
    4747$queries = array(
     
    345345;';
    346346  $result = pwg_query($query);
    347   while ($row = mysql_fetch_assoc($result))
     347  while ($row = pwg_db_fetch_assoc($result))
    348348  {
    349349    if ($row['Key_name'] != 'PRIMARY')
     
    537537;';
    538538$result = pwg_query($query);
    539 while ($row = mysql_fetch_assoc($result))
     539while ($row = pwg_db_fetch_assoc($result))
    540540{
    541541  array_push($cat_ids, $row['unique_storage_category_id']);
     
    562562;';
    563563$result = pwg_query($query);
    564 while ($row = mysql_fetch_assoc($result))
     564while ($row = pwg_db_fetch_assoc($result))
    565565{
    566566  array_push($cat_ids, $row['id']);
Note: See TracChangeset for help on using the changeset viewer.