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

    r4304 r4325  
    146146  $result = pwg_query($query);
    147147
    148   if (mysql_num_rows($result) > 0)
     148  if (pwg_db_num_rows($result) > 0)
    149149  {
    150150    $inserts = array();
    151151    $check_key_list = array();
    152152
    153     while ($nbm_user = mysql_fetch_assoc($result))
     153    while ($nbm_user = pwg_db_fetch_assoc($result))
    154154    {
    155155      // Calculate key
     
    239239  if (in_array($action, array('list_to_send', 'send')))
    240240  {
    241     list($dbnow) = mysql_fetch_row(pwg_query('SELECT NOW();'));
     241    list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();'));
    242242
    243243    $is_action_send = ($action == 'send');
     
    513513      // Update param
    514514      $result = pwg_query('select param, value from '.CONFIG_TABLE.' where param like \'nbm\\_%\'');
    515       while ($nbm_user = mysql_fetch_assoc($result))
     515      while ($nbm_user = pwg_db_fetch_assoc($result))
    516516      {
    517517        if (isset($_POST[$nbm_user['param']]))
Note: See TracChangeset for help on using the changeset viewer.