Changeset 19921


Ignore:
Timestamp:
01/06/13 19:18:58 (7 years ago)
Author:
mistic100
Message:

use "pwg_db_" functions

Location:
extensions/PWG_Stuffs/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/PWG_Stuffs/trunk/admin/add_module.inc.php

    r9738 r19921  
    6868      { 
    6969        $query = 'SELECT IF(MAX(id)+1 IS NULL, 1, MAX(id)+1) AS next_element_id  FROM ' . STUFFS_TABLE . ' ;'; 
    70         list($next_element_id) = mysql_fetch_array(pwg_query($query)); 
     70        list($next_element_id) = pwg_db_fetch_row(pwg_query($query)); 
    7171 
    7272        $query = 'SELECT MAX(pos)+1 AS next_pos  FROM ' . STUFFS_TABLE . ' ;'; 
    73         list($pos) = mysql_fetch_array(pwg_query($query)); 
     73        list($pos) = pwg_db_fetch_row(pwg_query($query)); 
    7474 
    7575        $query = ' 
  • extensions/PWG_Stuffs/trunk/admin/edit_module.inc.php

    r9383 r19921  
    55// Retrieve module data 
    66$q = ('SELECT * FROM ' . STUFFS_TABLE . ' WHERE id = ' . $_GET['edit'] . ';'); 
    7 $module = mysql_fetch_array(pwg_query($q)); 
     7$module = pwg_db_fetch_assoc(pwg_query($q)); 
    88 
    99$module['users'] = explode(',', $module['users']); 
  • extensions/PWG_Stuffs/trunk/admin/manage.inc.php

    r9738 r19921  
    5656    'J' => 'J'); 
    5757 
    58 while ($module = mysql_fetch_assoc($result)) 
     58while ($module = pwg_db_fetch_assoc($result)) 
    5959{ 
    6060  $module['name'] = !empty($module['path']) ? $module['name'] : l10n('stuffs_main_block'); 
  • extensions/PWG_Stuffs/trunk/admin/upgrade.inc.php

    r9490 r19921  
    3434   
    3535  $modules = array(); 
    36   while ($row = mysql_fetch_assoc($result)) 
     36  while ($row = pwg_db_fetch_assoc($result)) 
    3737  { 
    3838    if ($row['name'] != 'MainBlock') 
  • extensions/PWG_Stuffs/trunk/class.inc.php

    r17172 r19921  
    4444    $query = 'SELECT group_id FROM ' . USER_GROUP_TABLE . ' WHERE user_id = ' . $user['id'] . ';'; 
    4545    $result = pwg_query($query); 
    46     while ($row = mysql_fetch_assoc($result)) 
     46    while ($row = pwg_db_fetch_assoc($result)) 
    4747    { 
    4848      array_push($this->user_groups, $row['group_id']); 
     
    7171    $result = pwg_query($query); 
    7272 
    73     while ($row = mysql_fetch_assoc($result)) 
     73    while ($row = pwg_db_fetch_assoc($result)) 
    7474    { 
    7575      array_push($this->modules, $row); 
  • extensions/PWG_Stuffs/trunk/maintain.inc.php

    r9736 r19921  
    99  $query = 'SHOW TABLES LIKE "' . $prefixeTable . 'stuffs"'; 
    1010  $result = pwg_query($query); 
    11   if (!mysql_fetch_row($result)) 
     11  if (!pwg_db_fetch_row($result)) 
    1212  { 
    1313    $q = 'CREATE TABLE `' . $prefixeTable . 'stuffs` ( 
Note: See TracChangeset for help on using the changeset viewer.