Changeset 4325 for trunk/upload.php


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

    r4304 r4325  
    249249    $query.= ';';
    250250    pwg_query( $query );
    251     $page['waiting_id'] = mysql_insert_id();
     251    $page['waiting_id'] = pwg_db_insert_id();
    252252
    253253    if ($conf['email_admin_on_picture_uploaded'])
     
    289289  $query.= ';';
    290290  $result= pwg_query( $query );
    291   $row = mysql_fetch_assoc( $result );
     291  $row = pwg_db_fetch_assoc( $result );
    292292  $file = substr ( $row['file'], 0, strrpos ( $row['file'], ".") );
    293293  $extension = get_extension( $_FILES['picture']['name'] );
Note: See TracChangeset for help on using the changeset viewer.