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/db/65-database.php

    r4280 r4325  
    109109  GROUP BY language';
    110110  $result = pwg_query($query);
    111   while ( $row=mysql_fetch_assoc($result) )
     111  while ( $row=pwg_db_fetch_assoc($result) )
    112112  {
    113113    $language = $row["language"];
     
    142142  WHERE user_id='.$conf['webmaster_id'];
    143143  $result = pwg_query($query);
    144   if (mysql_num_rows($result)==0)
     144  if (pwg_db_num_rows($result)==0)
    145145  {
    146146    $query='
     
    151151  }
    152152
    153   if ( $row=mysql_fetch_assoc($result) )
     153  if ( $row=pwg_db_fetch_assoc($result) )
    154154  {
    155155    $admin_charset = $all_langs[$row['language']]['charset'];
     
    166166  $query = 'SHOW TABLES LIKE "'.$prefixeTable.'%"';
    167167  $result = pwg_query($query);
    168   while ( $row=mysql_fetch_assoc($result) )
     168  while ( $row=pwg_db_fetch_assoc($result) )
    169169  {
    170170    array_push($all_tables, $row[0]);
     
    177177    $result = pwg_query($query);
    178178    $field_definitions=array();
    179     while ( $row=mysql_fetch_assoc($result) )
     179    while ( $row=pwg_db_fetch_assoc($result) )
    180180    {
    181181      if ( !isset($row['Collation']) or $row['Collation']=='NULL' )
Note: See TracChangeset for help on using the changeset viewer.