it works, that's amazing, I don't get the principle behind this operation but it works :)
-----Ursprüngliche Nachricht----- Von: Jan Pieper [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 9. Dezember 2008 18:24 An: Markus Hausammann; [email protected] Betreff: Re: [fw-general] noob-question: increment integer in db I don´t know Zend_Db_Table very well but try this: [...] ++$row->pointer; $row->save(); -------- Original-Nachricht -------- > Datum: Tue, 9 Dec 2008 18:20:42 +0200 > Von: "Markus Hausammann" <[EMAIL PROTECTED]> > An: [email protected] > Betreff: [fw-general] noob-question: increment integer in db > Hi > > I would like to increment an integer column in my db. > > What I've tried is this: > > > > $row = $this->findDependentRowset('ParamsUser')->current(); > > $row->pointer = 'pointer + 1'; > > $row->save(); > > > > Obviously it doesn't work, how could I do it? > > Thanks! > > Markus > > > > PS I sent this question to fw-db but it didn't deliver.so forgive if it > should deliver later and be duplicate. > -- Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a
