Changeset 6498 for trunk/admin


Ignore:
Timestamp:
Jun 9, 2010, 11:38:43 AM (14 years ago)
Author:
nikrou
Message:

Bug 1715 fixed : SQLite: Add photos fail
must use pwg_db_* functions instead of mysql_* ones

Location:
trunk/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions_upload.inc.php

    r6385 r6498  
    2727
    2828  // current date
    29   list($dbnow) = mysql_fetch_row(pwg_query('SELECT NOW();'));
     29  list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();'));
    3030  list($year, $month, $day) = preg_split('/[^\d]/', $dbnow, 4);
    3131 
     
    121121    );
    122122 
    123   $image_id = mysql_insert_id();
     123  $image_id = pwg_db_insert_id();
    124124
    125125  if (isset($categories) and count($categories) > 0)
  • trunk/admin/photos_add_direct.php

    r6363 r6498  
    238238  WHERE id = '.$image_id.'
    239239;';
    240     $image_infos = mysql_fetch_assoc(pwg_query($query));
     240    $image_infos = pwg_db_fetch_assoc(pwg_query($query));
    241241
    242242    $thumbnail['file'] = $image_infos['file'];
     
    298298  WHERE category_id = '.$category_id.'
    299299;';
    300       list($count) = mysql_fetch_row(pwg_query($query));
     300      list($count) = pwg_db_fetch_row(pwg_query($query));
    301301      $category_name = get_cat_display_name_from_id($category_id, 'admin.php?page=cat_modify&cat_id=');
    302302     
Note: See TracChangeset for help on using the changeset viewer.