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

    r4265 r4325  
    7979;';
    8080  $result = pwg_query($query);
    81   while ($row = mysql_fetch_assoc($result))
     81  while ($row = pwg_db_fetch_assoc($result))
    8282  {
    8383    array_push($private_uppercats, $row['id']);
     
    9696  $result = pwg_query($query);
    9797
    98   while ($row = mysql_fetch_assoc($result))
     98  while ($row = pwg_db_fetch_assoc($result))
    9999  {
    100100    array_push($authorized_ids, $row['cat_id']);
     
    156156$result = pwg_query($query);
    157157
    158 if (mysql_num_rows($result) > 0)
     158if (pwg_db_num_rows($result) > 0)
    159159{
    160160  $cats = array();
    161   while ($row = mysql_fetch_assoc($result))
     161  while ($row = pwg_db_fetch_assoc($result))
    162162  {
    163163    array_push($cats, $row);
     
    192192$result = pwg_query($query_true);
    193193$authorized_ids = array();
    194 while ($row = mysql_fetch_assoc($result))
     194while ($row = pwg_db_fetch_assoc($result))
    195195{
    196196  array_push($authorized_ids, $row['id']);
Note: See TracChangeset for help on using the changeset viewer.