That's "easy"? Sounds like a ridiculously over-complex idea to me...
On Oct 25, 2:01 pm, Adwin Wijaya <[EMAIL PROTECTED]> wrote: > The easiest one :) > > create a table called counter with 2 field (or one,. deppend on you) > create table tcounter > :ctrtype "nameoftable" > :ctrvalue 0 > > when you want to save (inserting) ... get the ctrvalue from the > tcounter first, and then insert the ctrvalue into your table :id > (primary key). dont forget to update the tcountr after you > successfully inserting (update tcountr set ctrvalue = ctrvalue + 1 ) > > done :) > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---