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

    r4304 r4325  
    111111      '*',
    112112      '%',
    113       mysql_real_escape_string($_POST['filename'])
     113      pwg_db_real_escape_string($_POST['filename'])
    114114      );
    115115  }
     
    137137    pwg_query($query);
    138138
    139     $search_id = mysql_insert_id();
     139    $search_id = pwg_db_insert_id();
    140140
    141141    redirect(
     
    178178  WHERE id = '.$page['search_id'].'
    179179;';
    180   list($serialized_rules) = mysql_fetch_row(pwg_query($query));
     180  list($serialized_rules) = pwg_db_fetch_row(pwg_query($query));
    181181
    182182  $page['search'] = unserialize($serialized_rules);
     
    199199    pwg_query($query);
    200200
    201     $search_id = mysql_insert_id();
     201    $search_id = pwg_db_insert_id();
    202202
    203203    redirect(
     
    258258
    259259    $username_of = array();
    260     while ($row = mysql_fetch_assoc($result))
     260    while ($row = pwg_db_fetch_assoc($result))
    261261    {
    262262      $username_of[$row['id']] = stripslashes($row['username']);
     
    306306
    307307    $result = pwg_query($query);
    308     while ($row = mysql_fetch_assoc($result))
     308    while ($row = pwg_db_fetch_assoc($result))
    309309    {
    310310      $label_of_image[ $row['id'] ] = $row['label'];
     
    342342
    343343    $result = pwg_query($query);
    344     while ($row = mysql_fetch_assoc($result))
     344    while ($row = pwg_db_fetch_assoc($result))
    345345    {
    346346      $name_of_tag[ $row['id'] ] = $row['name'];
Note: See TracChangeset for help on using the changeset viewer.