I have an extra column in my table called sort_id now with each new entry I would like it to have one number higher then the current one in the database, i suppose i could do a count in mysql and then add 1 and insert it. But i don't know if there would be a better way in cakephp?
On Jun 26, 9:09 pm, "Jonathan Langevin" <[EMAIL PROTECTED]> wrote: > can you describe what you're trying to do a bit more in depth? > > On 6/26/07, Mech7 <[EMAIL PROTECTED]> wrote: > > > > > I am trying to add a sort_id so i can sort items with the drag and > > drop, but what is the best way to count the exisiting sort_id and add > > one? > > > Should i write this in a query or is there a function in cake to do > > this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
