Re: How to fillup a transaction table.

2007-01-03 Thread sumanpaul
Hi TJ, I got the idea. I think you are right. I will try it and let you know tonight. /* Edit the following line with the proper controller, and action*/ $this->redirect("/controller/action/$id"); exit(); This is thing is going to do the trick i guess. but i am again concerned about one more t

Re: How to fillup a transaction table.

2007-01-02 Thread TJSingleton
sumanpaul wrote: now question is : after adding the user successfully in the user table how to insert data in the transaction table. I figured out we can get the last inserted id by using getLastInsertID(). You're on the right track with the getLastInsertID(). Here is a generic add code fro

How to fillup a transaction table.

2007-01-02 Thread sumanpaul
I have a user table and an event table. while registering user can check the events they want to participate. Now my question is kinda PHP question first then CAKE. I am thinking of maintaining transaction table where the fields will be id, user_id, event_id now question is : after adding the u