HomeHelpTrac

Ignore:
Timestamp:
05/01/09 01:18:36 (3 years ago)
Author:
Andrey Prikaznov
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/inc/classes/BxDolPFM.php

    r10300 r10378  
    12111211         
    12121212        //try to insert new item 
    1213         if( db_res( "INSERT INTO `sys_profile_fields` (`Name`, `Type` ) VALUES ('NEW_ITEM', 'text')", 0 ) and $iNewID = mysql_insert_id() ) { 
     1213        if( db_res( "INSERT INTO `sys_profile_fields` (`Name`, `Type` ) VALUES ('NEW_ITEM', 'text')", 0 ) and $iNewID = db_last_id() ) { 
    12141214            //if success - try to alter table 
    12151215            if( !db_res( "ALTER TABLE `Profiles` ADD `NEW_ITEM` varchar(255) NOT NULL default ''", 0 ) ) { 
     
    12251225    function createNewBlock() { 
    12261226        db_res( "INSERT INTO `sys_profile_fields` (`Name`, `Type` ) VALUES ('NEW BLOCK', 'block')", 0 ); 
    1227         $iNewID = mysql_insert_id(); 
     1227        $iNewID = db_last_id(); 
    12281228         
    12291229        db_res( " 
     
    12511251            $sQuery = "INSERT INTO `sys_localization_keys` (`IDCategory`,`Key`) VALUES (32,'$sKey_db')"; 
    12521252            db_res( $sQuery ); 
    1253             $iKeyID = mysql_insert_id(); 
     1253            $iKeyID = db_last_id(); 
    12541254        } 
    12551255         
Note: See TracChangeset for help on using the changeset viewer.