info@bdh Posted June 11, 2009 Report Share Posted June 11, 2009 Hallo, hat jemand eventuell eine Idee, weshalb dieser Code einen fast leeren Datensatz in die DB schreibt und zusätzlich den richtigen Datensatz? function _set($data, $set_type='edit'){ global $db,$language,$filter; $rrs = $db->Execute("SELECT ID FROM ".TABLE_BDHKURSE." ORDER BY ID DESC LIMIT 0,1"); if ($rrs->RecordCount()>0) { $TempID = ($rrs->fields['ID'])+1; } $data['ID']=$TempID; $obj = new stdClass; $o = new adminDB_DataSave($this->_table, $data, false, __CLASS__); $obj = $o->saveDataSet(); return $obj; } Vielen Dank und freundliche Grüße Martin Link to comment Share on other sites More sharing options...
mzanier Posted June 12, 2009 Report Share Posted June 12, 2009 sowas kann auftreten wenn man den master_key nicht definiert hat. Link to comment Share on other sites More sharing options...
info@bdh Posted June 12, 2009 Author Report Share Posted June 12, 2009 Ah ja... Vielen Dank für die Info. Freundliche Grüße Martin Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.