Changeset 10378 for trunk/inc/classes/BxDolPFM.php
- Timestamp:
- 05/01/09 01:18:36 (3 years ago)
- File:
-
- 1 edited
-
trunk/inc/classes/BxDolPFM.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/classes/BxDolPFM.php
r10300 r10378 1211 1211 1212 1212 //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() ) { 1214 1214 //if success - try to alter table 1215 1215 if( !db_res( "ALTER TABLE `Profiles` ADD `NEW_ITEM` varchar(255) NOT NULL default ''", 0 ) ) { … … 1225 1225 function createNewBlock() { 1226 1226 db_res( "INSERT INTO `sys_profile_fields` (`Name`, `Type` ) VALUES ('NEW BLOCK', 'block')", 0 ); 1227 $iNewID = mysql_insert_id();1227 $iNewID = db_last_id(); 1228 1228 1229 1229 db_res( " … … 1251 1251 $sQuery = "INSERT INTO `sys_localization_keys` (`IDCategory`,`Key`) VALUES (32,'$sKey_db')"; 1252 1252 db_res( $sQuery ); 1253 $iKeyID = mysql_insert_id();1253 $iKeyID = db_last_id(); 1254 1254 } 1255 1255
Note: See TracChangeset
for help on using the changeset viewer.